From 624ae75baabff2a0e4749cfda095671505ac4698 Mon Sep 17 00:00:00 2001 From: Morgan Haskel Date: Fri, 24 Oct 2014 14:09:31 -0500 Subject: [PATCH] Install certs on windows This should allow the install of stdlib to succeed. --- spec/spec_helper_acceptance.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index b34a188d6..713466e95 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -24,6 +24,10 @@ c.before :suite do # Install module and dependencies hosts.each do |host| + if fact_on(host, 'osfamily') == 'windows' + on host, 'powershell.exe -command "(New-Object System.Net.Webclient).DownloadString(\'https://forge.puppetlabs.com\')"' + end + on host, "mkdir -p #{host['distmoduledir']}/concat" result = on host, "echo #{host['distmoduledir']}/concat" target = result.raw_output.chomp