Sha256: 53460b24702ce0600c992e333a48dfcb8f0f762ffc1ccdcb1e693c622e2bf375

Contents?: true

Size: 1.58 KB

Versions: 11

Compression:

Stored size: 1.58 KB

Contents

module VagrantPlugins
  module PodmanProvisioner
    module Cap
      module Centos
        module PodmanInstall
          def self.podman_install(machine, kubic)
            if kubic
              # Official install instructions for podman
              # https://podman.io/getting-started/installation.html
              case machine.guest.capability("flavor")
              when :centos_7
                machine.communicate.tap do |comm|
                  comm.sudo("curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_7/devel:kubic:libcontainers:stable.repo")
                  comm.sudo("yum -q -y install podman")
                end
              when :centos_8
                machine.communicate.tap do |comm|
                  comm.sudo("dnf -y module disable container-tools &> /dev/null || echo 'container-tools module does not exist'")
                  comm.sudo("dnf -y install 'dnf-command(copr)'")
                  comm.sudo("dnf -y copr enable rhcontainerbot/container-selinux")
                  comm.sudo("curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_8/devel:kubic:libcontainers:stable.repo")
                  comm.sudo("dnf -y install podman")
                end
              end
            else
              machine.communicate.tap do |comm|
                comm.sudo("yum -q -y install podman")
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/provisioners/podman/cap/centos/podman_install.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/provisioners/podman/cap/centos/podman_install.rb
vagrant-unbundled-2.3.3.0 plugins/provisioners/podman/cap/centos/podman_install.rb
vagrant-unbundled-2.3.2.0 plugins/provisioners/podman/cap/centos/podman_install.rb
vagrant-unbundled-2.2.19.0 plugins/provisioners/podman/cap/centos/podman_install.rb
vagrant-unbundled-2.2.18.0 plugins/provisioners/podman/cap/centos/podman_install.rb
vagrant-unbundled-2.2.16.0 plugins/provisioners/podman/cap/centos/podman_install.rb
vagrant-unbundled-2.2.14.0 plugins/provisioners/podman/cap/centos/podman_install.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/provisioners/podman/cap/centos/podman_install.rb
vagrant-unbundled-2.2.10.0 plugins/provisioners/podman/cap/centos/podman_install.rb
vagrant-unbundled-2.2.9.0 plugins/provisioners/podman/cap/centos/podman_install.rb