beaker-puppet_install_helper 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86bc47a968d6ea84a458a08390c720a2364d196d
|
4
|
+
data.tar.gz: d5d09f0f78c80e1c6c45189d4d9e6675be768544
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 697bd7bb1d43090f83bdfaa6b98adccddfd53f6d723d20de6690763c3cc395cc9fd914a1a555cc67045e08418c1bc3a38f210432470db4ddf89757860a9538f5
|
7
|
+
data.tar.gz: 33b6b68a7eb197e00323474dbef24b7447871decb3e76c58d3e96d90b353458b3219a3e80a8550e78478ced74d3b1202d4f53ad4be5a6cb60ae1a17c14eb13d2
|
@@ -19,15 +19,13 @@ module Beaker::CaCertHelper
|
|
19
19
|
##
|
20
20
|
def install_ca_certs_on(hosts)
|
21
21
|
[hosts].flatten.each do |host|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
add_solaris_cert host, cert_name
|
30
|
-
end
|
22
|
+
get_cert_hash.each do |cert_name, ca|
|
23
|
+
if host['platform'] =~ /windows/i
|
24
|
+
create_cert_on_host(host, cert_name, ca)
|
25
|
+
add_windows_cert host, cert_name
|
26
|
+
elsif host['platform'] =~ /solaris/i and host['pe_ver'] and version_is_less(host['pe_ver'], '4.0.0')
|
27
|
+
create_cert_on_host(host, cert_name, ca)
|
28
|
+
add_solaris_cert host, cert_name
|
31
29
|
end
|
32
30
|
end
|
33
31
|
end
|
@@ -56,6 +56,8 @@ describe 'beaker::puppet_install_helper' do
|
|
56
56
|
win_hosts = [ w2k3 ]
|
57
57
|
expect(subject).to receive(:default).and_return(double(:is_pe? => true))
|
58
58
|
expect(subject).to receive(:install_pe_on).with([w2k3.merge({'install_32' => true})], {"pe_ver" => nil})
|
59
|
+
expect(subject).to receive(:create_cert_on_host).exactly(3).times
|
60
|
+
expect(subject).to receive(:add_windows_cert).exactly(3).times
|
59
61
|
subject.run_puppet_install_helper_on(win_hosts)
|
60
62
|
end
|
61
63
|
it "uses PE by default for PE nodes" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-puppet_install_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|