Skip to content

Commit

Permalink
Add windows support and work around issue with SCP_TO on windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Fields committed Jun 23, 2014
1 parent 3ec3a4b commit 0199e23
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
if hosts.first.is_pe?
install_pe
on hosts, 'mkdir -p /etc/puppetlabs/facter/facts.d'
hosts.each do |host|
if !(host['platform'] =~ /windows/)
on host, 'mkdir -p /etc/puppetlabs/facter/facts.d'
end
end

else
install_puppet
on hosts, 'mkdir -p /etc/facter/facts.d'
Expand All @@ -26,6 +31,15 @@

# Configure all nodes in nodeset
c.before :suite do
puppet_module_install(:source => proj_root, :module_name => 'stdlib')
hosts.each do |host|
if host['platform'] !~ /windows/i
copy_root_module_to(host, :source => proj_root, :module_name => 'stdlib')
end
end
hosts.each do |host|
if host['platform'] =~ /windows/i
on host, puppet('plugin download')
end
end
end
end

0 comments on commit 0199e23

Please sign in to comment.