Skip to content

Commit b3e16f1

Browse files
committed
Install podman successfully
1 parent f47e85d commit b3e16f1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: plugins/provisioners/container/plugin.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require "vagrant"
22

33
module VagrantPlugins
4-
module PodmanProvisioner
4+
module ContainerProvisioner
55
class Plugin < Vagrant.plugin("2")
66
name "container"
77
description <<-DESC

Diff for: plugins/provisioners/podman/cap/redhat/podman_install.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ def self.podman_install(machine)
99
case machine.guest.capability("flavor")
1010
when :rhel_7
1111
machine.communicate.tap do |comm|
12-
comm.sudo("curl -sSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/CentOS_7/devel:kubic:libcontainers:stable.repo -o /etc/yum.repos.d/")
12+
comm.sudo("curl 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")
1313
comm.sudo("yum -q -y install podman")
1414
end
1515
when :rhel_8
1616
machine.communicate.tap do |comm|
1717
comm.sudo("dnf -y module disable container-tools")
1818
comm.sudo("dnf -y install 'dnf-command(copr)'")
1919
comm.sudo("dnf -y copr enable rhcontainerbot/container-selinux")
20-
comm.sudo("curl -sSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/CentOS_8/devel:kubic:libcontainers:stable.repo -o /etc/yum.repos.d/")
20+
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")
2121
comm.sudo("dnf -y install podman")
2222
end
2323
else

Diff for: plugins/provisioners/podman/client.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module VagrantPlugins
44
module PodmanProvisioner
55
class Client < VagrantPlugins::ContainerProvisioner::Client
66
def initialize(machine)
7-
super(machine, "docker")
7+
super(machine, "podman")
88
@container_command = "podman"
99
end
1010
end

0 commit comments

Comments
 (0)