Merge pull request #1015 from jamtur01/updatedpuppetcommands
This commit has three minor changes to the Puppet provisioners
This commit is contained in:
commit
25800c752a
|
@ -100,7 +100,7 @@ module VagrantPlugins
|
|||
|
||||
# Verify Puppet is installed and run it
|
||||
verify_binary("puppet")
|
||||
run_puppet_client
|
||||
run_puppet_apply
|
||||
end
|
||||
|
||||
def share_manifests
|
||||
|
@ -135,7 +135,7 @@ module VagrantPlugins
|
|||
:binary => binary)
|
||||
end
|
||||
|
||||
def run_puppet_client
|
||||
def run_puppet_apply
|
||||
options = [config.options].flatten
|
||||
module_paths = @module_paths.map { |_, to| to }
|
||||
options << "--modulepath '#{module_paths.join(':')}'" if !@module_paths.empty?
|
||||
|
|
|
@ -22,8 +22,8 @@ module VagrantPlugins
|
|||
end
|
||||
|
||||
def provision!
|
||||
verify_binary("puppetd")
|
||||
run_puppetd_client
|
||||
verify_binary("puppet")
|
||||
run_puppet_agent
|
||||
end
|
||||
|
||||
def verify_binary(binary)
|
||||
|
@ -33,7 +33,7 @@ module VagrantPlugins
|
|||
:binary => binary)
|
||||
end
|
||||
|
||||
def run_puppetd_client
|
||||
def run_puppet_agent
|
||||
options = config.options
|
||||
options = [options] if !options.is_a?(Array)
|
||||
|
||||
|
@ -67,7 +67,7 @@ module VagrantPlugins
|
|||
facter = "#{facts.join(" ")} "
|
||||
end
|
||||
|
||||
command = "#{facter}puppetd #{options} --server #{config.puppet_server}"
|
||||
command = "#{facter}puppet agent #{options} --server #{config.puppet_server}"
|
||||
|
||||
env[:ui].info I18n.t("vagrant.provisioners.puppet_server.running_puppetd")
|
||||
env[:vm].channel.sudo(command) do |type, data|
|
||||
|
|
Loading…
Reference in New Issue