From: Morgan Haskel Date: Tue, 12 Aug 2014 20:10:36 +0000 (-0400) Subject: Don't hardcode /etc/puppet as the puppetpath. X-Git-Tag: 1.6.0^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=442ca3087077434c9f96376b9b3e289966392839;p=puppet-modules%2Fpuppetlabs-apt.git Don't hardcode /etc/puppet as the puppetpath. --- diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 3352564..fe3e4bf 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -26,7 +26,7 @@ RSpec.configure do |c| # Install module and dependencies puppet_module_install(:source => proj_root, :module_name => 'apt') hosts.each do |host| - shell('/bin/touch /etc/puppet/hiera.yaml') + shell("/bin/touch #{default['puppetpath']}/hiera.yaml") shell('puppet module install puppetlabs-stdlib --version 2.2.1', { :acceptable_exit_codes => [0,1] }) end end