Fixed suse naming for fcengine cap and refined install command
This commit is contained in:
parent
f1b62ae03a
commit
31b6d69127
|
@ -1,12 +1,13 @@
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module CFEngine
|
module CFEngine
|
||||||
module Cap
|
module Cap
|
||||||
module SuSE
|
module SUSE
|
||||||
module CFEngineInstall
|
module CFEngineInstall
|
||||||
def self.cfengine_install(machine, config)
|
def self.cfengine_install(machine, config)
|
||||||
machine.communicate.tap do |comm|
|
machine.communicate.tap do |comm|
|
||||||
comm.sudo("GPGFILE=$(mktemp) && wget -O $GPGFILE #{config.repo_gpg_key_url} && rpm --import $GPGFILE; rm -f $GPGFILE")
|
comm.sudo("rpm --import #{config.repo_gpg_key_url}")
|
||||||
comm.sudo("zypper addrepo -t YUM #{config.yum_repo_url} cfengine-repository")
|
|
||||||
|
comm.sudo("zypper addrepo -t YUM #{config.yum_repo_url} CFEngine")
|
||||||
comm.sudo("zypper se #{config.package_name} && zypper -n install #{config.package_name}")
|
comm.sudo("zypper se #{config.package_name} && zypper -n install #{config.package_name}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -35,7 +35,7 @@ module VagrantPlugins
|
||||||
|
|
||||||
guest_capability("suse", "cfengine_install") do
|
guest_capability("suse", "cfengine_install") do
|
||||||
require_relative "cap/suse/cfengine_install"
|
require_relative "cap/suse/cfengine_install"
|
||||||
Cap::SuSE::CFEngineInstall
|
Cap::SUSE::CFEngineInstall
|
||||||
end
|
end
|
||||||
|
|
||||||
provisioner(:cfengine) do
|
provisioner(:cfengine) do
|
||||||
|
|
Loading…
Reference in New Issue