From b92a81458369c8f65e9d92aa43ef085835430ee9 Mon Sep 17 00:00:00 2001 From: Paul Nguyen Date: Thu, 21 Jul 2011 13:36:17 -0700 Subject: [PATCH] With puppet 2.7.x, the following warning [closes GH-421] warning: Implicit invocation of 'puppet apply' by passing files (or flags) directly to 'puppet' is deprecated, and will be removed in the 2.8 series. Please invoke 'puppet apply' directly in the future. Since puppet 2.6, 'puppet apply manifestfile.pp' is the preferred way to apply a puppet manifest file, instead of 'puppet manifestfile.pp'. The use of puppet without the apply option will be deprecated in 2.8. Changed the 'commands' array to reflect the new syntax. --- lib/vagrant/provisioners/puppet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/provisioners/puppet.rb b/lib/vagrant/provisioners/puppet.rb index 35de27762..15cc3f2f3 100644 --- a/lib/vagrant/provisioners/puppet.rb +++ b/lib/vagrant/provisioners/puppet.rb @@ -118,7 +118,7 @@ module Vagrant options = options.join(" ") commands = ["cd #{manifests_guest_path}", - "puppet #{options}"] + "puppet apply #{options}"] env.ui.info I18n.t("vagrant.provisioners.puppet.running_puppet", :manifest => config.computed_manifest_file)