Skip to content

Commit

Permalink
update spec_helper_acceptance to use #puppet_module_install
Browse files Browse the repository at this point in the history
Instead of custom scp logic
  • Loading branch information
jhoblitt committed Jun 7, 2015
1 parent 419528b commit b6094f3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,8 @@
# Configure all nodes in nodeset
c.before :suite do
# Install module and dependencies
puppet_module_install(:source => proj_root, :module_name => 'nsstools')
hosts.each do |host|
on host, "mkdir -p #{host['distmoduledir']}/nsstools"
result = on host, "echo #{host['distmoduledir']}/nsstools"
target = result.raw_output.chomp

%w(files lib manifests templates metadata.json).each do |file|
path = "#{proj_root}/#{file}"
next unless File.exists? path
scp_to host, path, target
end
on host, puppet('module', 'install', 'puppetlabs-stdlib'), {:acceptable_exit_codes => [0, 1]}
on host, puppet('module', 'install', 'stahnma-epel'), {:acceptable_exit_codes => [0, 1]}
on host, puppet('module', 'install', 'camptocamp-openssl'), {:acceptable_exit_codes => [0, 1]}
Expand Down

0 comments on commit b6094f3

Please sign in to comment.