summaryrefslogtreecommitdiff
path: root/spec/spec_helper_acceptance.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper_acceptance.rb')
-rwxr-xr-xspec/spec_helper_acceptance.rb18
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