Merge pull request #622 from mhaskel/puppet_not_shell

Use puppet() instead of shell() to install module dependencies
This commit is contained in:
Hunter Haugen 2014-12-12 13:28:02 -08:00
commit 2f9820ced8

View file

@ -36,7 +36,7 @@ RSpec.configure do |c|
end
shell("/bin/touch #{default['puppetpath']}/hiera.yaml")
shell('puppet module install puppetlabs-stdlib --version 3.2.0', { :acceptable_exit_codes => [0,1] })
on host, puppet('module install puppetlabs-stdlib --version 3.2.0'), { :acceptable_exit_codes => [0,1] }
on host, puppet('module','install','stahnma/epel'), { :acceptable_exit_codes => [0,1] }
end
end