diff options
author | Travis Fields <travis@puppetlabs.com> | 2014-06-23 16:59:46 -0700 |
---|---|---|
committer | Travis Fields <travis@puppetlabs.com> | 2014-06-23 16:59:46 -0700 |
commit | 0199e2396aa841fb8d34e8c33da2373e2b2c9416 (patch) | |
tree | e1607c3cf12b6629a58ecb563d139b96623a3e49 | |
parent | 3ec3a4b0facc22b323d0fc6f16d6c6a5a1323ded (diff) |
Add windows support and work around issue with SCP_TO on windows systems
-rwxr-xr-x | spec/spec_helper_acceptance.rb | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 8e56daa..dc2cfdc 100755 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -6,7 +6,12 @@ UNSUPPORTED_PLATFORMS = [] 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' @@ -26,6 +31,15 @@ RSpec.configure do |c| # 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 |