File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 11require 'beaker-rspec'
2- require 'beaker-puppet'
32require 'beaker/module_install_helper'
43require 'beaker/puppet_install_helper'
54
65RSpec . configure do |c |
76 c . before :suite do
87 unless ENV [ 'BEAKER_provision' ] == 'no'
98 # Until solaris gets new image we need to add to the cert chain on solaris, call a beaker-puppet setup script to handle this
10- bp_path , _status = Open3 . capture2 ( 'bundler info beaker-puppet --path' )
11- bp_path . strip!
12- solaris_patch_path = bp_path + '/setup/common/003_solaris_cert_fix.rb'
13- require solaris_patch_path
9+ hosts . each do |host |
10+ if host . platform =~ /solaris-11(\. 2)?-(i386|sparc)/
11+ create_remote_file ( host , "DigiCertTrustedRootG4.crt.pem" , DigiCert )
12+ on ( host , 'chmod a+r /root/DigiCertTrustedRootG4.crt.pem' )
13+ on ( host , 'cp -p /root/DigiCertTrustedRootG4.crt.pem /etc/certs/CA/' )
14+ on ( host , 'rm /root/DigiCertTrustedRootG4.crt.pem' )
15+ on ( host , '/usr/sbin/svcadm restart /system/ca-certificates' )
16+ timeout = 60
17+ counter = 0
18+ while on ( host , 'svcs -x ca-certificates' ) . output !~ /State: online/ do
19+ raise 'ca-certificates services failed start up' if counter > timeout
20+ sleep 5
21+ counter = counter + 5
22+ end
23+ end
24+ end
1425 run_puppet_install_helper
1526 install_module_on ( hosts )
1627 install_module_dependencies_on ( hosts )
You can’t perform that action at this time.
0 commit comments