beaker-puppet_install_helper 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b3d3a1e3151b4148cdb24e298c8e89ad4d0e6cf
4
- data.tar.gz: f200b28636bf0f7e4fae22c56255d82155183b4b
3
+ metadata.gz: 86bc47a968d6ea84a458a08390c720a2364d196d
4
+ data.tar.gz: d5d09f0f78c80e1c6c45189d4d9e6675be768544
5
5
  SHA512:
6
- metadata.gz: d5ee9086a1545129ed9e0aea4b3c3eb1c687fa6381197f102a251162d33b4dbbf1224813c408588701d6c192ac0d8b16a171b8c2898b0bb9b9f756eba9bee4ea
7
- data.tar.gz: ce04589ec9651e3acb833cb9e958fd90ab93456da26509614e36933f82891b20b5d656f6e45c03b7c9940a581eac0873defff92ee327de208ff7e92e42fa5daf
6
+ metadata.gz: 697bd7bb1d43090f83bdfaa6b98adccddfd53f6d723d20de6690763c3cc395cc9fd914a1a555cc67045e08418c1bc3a38f210432470db4ddf89757860a9538f5
7
+ data.tar.gz: 33b6b68a7eb197e00323474dbef24b7447871decb3e76c58d3e96d90b353458b3219a3e80a8550e78478ced74d3b1202d4f53ad4be5a6cb60ae1a17c14eb13d2
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "beaker-puppet_install_helper"
3
- s.version = '0.4.3'
3
+ s.version = '0.4.4'
4
4
  s.authors = ["Puppetlabs"]
5
5
  s.email = ["hunter@puppetlabs.com"]
6
6
  s.homepage = "https://github.com/puppetlabs/beaker-puppet_install_helper"
@@ -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
- if host['pe_ver'] and version_is_less(host['pe_ver'], '4.0.0')
23
- get_cert_hash.each do |cert_name, ca|
24
- if host['platform'] =~ /windows/i
25
- create_cert_on_host(host, cert_name, ca)
26
- add_windows_cert host, cert_name
27
- elsif host['platform'] =~ /solaris/i
28
- create_cert_on_host(host, cert_name, ca)
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.3
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 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec