diff --git a/CHANGELOG.md b/CHANGELOG.md index aca41a61a..4b39e5c17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -112,6 +112,8 @@ BUG FIXES: isn't already in it. [GH-2838] - provisioners/docker: Configuring autostart works properly with the newest versions of Docker. [GH-2874] + - provisioners/puppet: Append default module path to the module paths + always. [GH-2677] - provisioners/salt: Options can now set install type and install args. [GH-2766] - provisioners/salt: Fix case when salt would say "options only allowed diff --git a/plugins/provisioners/puppet/provisioner/puppet.rb b/plugins/provisioners/puppet/provisioner/puppet.rb index 0cb0c9526..3abe86fd4 100644 --- a/plugins/provisioners/puppet/provisioner/puppet.rb +++ b/plugins/provisioners/puppet/provisioner/puppet.rb @@ -98,8 +98,8 @@ module VagrantPlugins options = [config.options].flatten module_paths = @module_paths.map { |_, to| to } if !@module_paths.empty? - # Prepend the default module path - module_paths.unshift("/etc/puppet/modules") + # Append the default module path + module_paths << "/etc/puppet/modules" # Add the command line switch to add the module path options << "--modulepath '#{module_paths.join(':')}'"