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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df06b95e2751286b63fef798fecc7ce8d49114a7
|
|
4
|
+
data.tar.gz: ad920228d116a92b4f604f2457d2f8472f646838
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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)
|
|
@@ -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 "
|
|
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
|
-
|
|
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
|
|
33
|
+
on agent, puppet("agent --test --server #{master}"), :acceptable_exit_codes => [1]
|
|
33
34
|
end
|
|
34
35
|
|
|
35
|
-
# Sign all waiting certs
|
|
36
|
-
step "
|
|
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.
|
|
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-
|
|
11
|
+
date: 2018-04-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|