From 0199e2396aa841fb8d34e8c33da2373e2b2c9416 Mon Sep 17 00:00:00 2001 From: Travis Fields Date: Mon, 23 Jun 2014 16:59:46 -0700 Subject: Add windows support and work around issue with SCP_TO on windows systems --- spec/spec_helper_acceptance.rb | 18 ++++++++++++++++-- 1 file 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 -- cgit v1.2.3