beaker-puppet 0.13.5 → 0.13.6

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: cca1d57bd1c5a2a3fa77787a878ab3053ee09516
4
- data.tar.gz: 112ffe35c2a225167dcb9595c14a04e1ecd1653c
3
+ metadata.gz: df06b95e2751286b63fef798fecc7ce8d49114a7
4
+ data.tar.gz: ad920228d116a92b4f604f2457d2f8472f646838
5
5
  SHA512:
6
- metadata.gz: dd6fd41e1779ada512ceaa7f34afb40d93871e533c80d77e298d48ba6d89d505cde488eb864645015dd0dce29ba0f1740f231fbbb77528bdc30f600f019cf6f7
7
- data.tar.gz: 50249278eaf41ccad9d7e275fd37ba729021ee686091ef1bea86e76ba29d11cf82e8b8bd9727a38e4ab1c9aa676c4a7e1733f3cf61587fccfc1124fee38b9311
6
+ metadata.gz: 05778ac1d1f1cf7f0de41b7f7d478a99459e830859247c71a54c2a3c2049c35f5a35cb9962ed818e81549f2240bc9c12c3f4a3bfdde11e4323808e1701010f5d
7
+ data.tar.gz: bdab4921bc52af5669f5efe29fb59ce081bf25748fbaffef9575dd1fbca7fa652c75de4cf9a9b69ca33fa438df09c4b441e736ceb3570e78d9200af68c0f5c55
@@ -103,7 +103,11 @@ module BeakerPuppet
103
103
  onhost_package_file = "#{project_name}*"
104
104
  host.install_local_package(onhost_package_file)
105
105
  when 'windows'
106
- generic_install_msi_on(host, artifact_url)
106
+ if project_name == 'puppet-agent'
107
+ install_msi_on(host, artifact_url)
108
+ else
109
+ generic_install_msi_on(host, artifact_url)
110
+ end
107
111
  when 'aix'
108
112
  artifact_filename = File.basename(artifact_url)
109
113
  artifact_folder = File.dirname(artifact_url)
@@ -1,3 +1,3 @@
1
1
  module BeakerPuppet
2
- VERSION = '0.13.5'
2
+ VERSION = '0.13.6'
3
3
  end
@@ -14,26 +14,27 @@ test_name "Validate Sign Cert" do
14
14
  step "Clear SSL on all hosts"
15
15
  hosts.each do |host|
16
16
  ssldir = on(host, puppet('agent --configprint ssldir')).stdout.chomp
17
+ # preserve permissions for master's ssldir so puppetserver can read it
17
18
  on(host, "rm -rf '#{ssldir}/*'")
18
19
  end
19
20
 
20
- step "Master: Start Puppet Master" do
21
+ step "Start puppetserver" do
21
22
  master_opts = {
22
23
  :main => {
23
24
  :dns_alt_names => "puppet,#{hostname},#{fqdn}",
24
25
  },
25
26
  }
27
+ # server will generate the CA and server certs when it starts
26
28
  with_puppet_running_on(master, master_opts) do
27
-
28
- hosts.each do |host|
29
- next if host['roles'].include? 'master'
29
+ agents.each do |agent|
30
+ next if agent == master
30
31
 
31
32
  step "Agents: Run agent --test first time to gen CSR"
32
- on host, puppet("agent --test --server #{master}"), :acceptable_exit_codes => [1]
33
+ on agent, puppet("agent --test --server #{master}"), :acceptable_exit_codes => [1]
33
34
  end
34
35
 
35
- # Sign all waiting certs
36
- step "Master: sign all certs"
36
+ # Sign all waiting agent certs
37
+ step "Server: sign all agent certs"
37
38
  on master, puppet("cert --sign --all"), :acceptable_exit_codes => [0,24]
38
39
 
39
40
  step "Agents: Run agent --test second time to obtain signed cert"
@@ -169,6 +169,14 @@ describe ClassMixedWithDSLInstallUtils do
169
169
  subject.install_artifact_on(host, artifact_url, 'project_name')
170
170
  end
171
171
 
172
+ it 'install a puppet-agent MSI from a URL on Windows' do
173
+ @platform = 'windows'
174
+
175
+ expect(subject).to receive(:install_msi_on).with(host, artifact_url)
176
+
177
+ subject.install_artifact_on(host, artifact_url, 'puppet-agent')
178
+ end
179
+
172
180
  it 'install an MSI from a URL on Windows' do
173
181
  @platform = 'windows'
174
182
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.5
4
+ version: 0.13.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-25 00:00:00.000000000 Z
11
+ date: 2018-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec