beaker-puppet 1.18.5 → 1.18.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: 57be5efb59aee0430bf66e044060bf40b80c9968
4
- data.tar.gz: 73cde86bd49873032acf32958f47b0daf2462180
3
+ metadata.gz: b5a08dd203761a4a5bfda53b7f212ab54fef8d70
4
+ data.tar.gz: 21f83faf1e52fc7040c76775249469d4eaf52628
5
5
  SHA512:
6
- metadata.gz: a9d3adce8d72fb265f00236c1a27096c93499bd263a92f8f29ccc14997822a7df87928264d456ba7afa8d93b0d991574dfb7451cdf875f3b4b5797a8263ca144
7
- data.tar.gz: 86fdee61a64f18e9dddaa163dd40d93d582a0cd37f04ab01ae3a668c5e90e4ac3f19031f62c04ddbbc74a9264bd85a8878851bc2f15a674d80c60be1336cc4f0
6
+ metadata.gz: 5995a15e365daa5b940263c03df81ea3c4302b7a2a513cafea25cdeaffb408e17fd70ea3c7213443f53b2b7ec7fdf0ab08aa1712100e3c488022cd55327f5082
7
+ data.tar.gz: b256f4840bd77c43cb660e79422ffa6291f55216bab327db13959d6e4e30a8ee3bde35ca886481a5068d8b7db70b83d219f4cf679bcd91c71bf01c6d9f5245bc
@@ -1,3 +1,3 @@
1
1
  module BeakerPuppet
2
- VERSION = '1.18.5'
2
+ VERSION = '1.18.6'
3
3
  end
@@ -7,5 +7,7 @@ test_name "Install Puppet Server" do
7
7
  :nightly_builds_url => ENV['NIGHTLY_BUILDS_URL'],
8
8
  :dev_builds_url => ENV['DEV_BUILDS_URL']
9
9
  }
10
- install_puppetserver_on(master, opts)
10
+ unless master['use_existing_container']
11
+ install_puppetserver_on(master, opts)
12
+ end
11
13
  end
@@ -1,4 +1,9 @@
1
1
  test_name "Validate Sign Cert" do
2
+ need_to_run = false
3
+ hosts.each do |host|
4
+ need_to_run ||= !host['use_existing_container']
5
+ end
6
+ skip_test 'No new hosts to create, skipping' unless need_to_run
2
7
  skip_test 'not testing with puppetserver' unless @options['is_puppetserver']
3
8
  hostname = on(master, 'facter hostname').stdout.strip
4
9
  fqdn = on(master, 'facter fqdn').stdout.strip
@@ -35,7 +40,7 @@ test_name "Validate Sign Cert" do
35
40
 
36
41
  # In Puppet 6, we want to be using an intermediate CA
37
42
  unless version_is_less(puppet_version, "5.99")
38
- on master, 'puppetserver ca setup'
43
+ on master, 'puppetserver ca setup' unless master['use_existing_container']
39
44
  end
40
45
  with_puppet_running_on(master, master_opts) do
41
46
  step "Agents: Run agent --test with autosigning enabled to get cert"
@@ -72,6 +72,14 @@ end
72
72
  install_packages_on(agents, PACKAGES, :check_if_exists => true)
73
73
 
74
74
  step "Unpack puppet-runtime" do
75
+ need_to_run = false
76
+ agents.each do |host|
77
+ # we only need to unpack the runtime if the host doesn't already have runtime
78
+ # and if it's a not an existing container
79
+ need_to_run ||= (!host['has_runtime'] && !host['use_existing_container'])
80
+ end
81
+
82
+ skip_test 'No new hosts to create, skipping' unless need_to_run
75
83
  dev_builds_url = ENV['DEV_BUILDS_URL'] || 'http://builds.delivery.puppetlabs.net'
76
84
  branch = ENV['RUNTIME_BRANCH'] || 'master'
77
85
 
@@ -87,6 +95,7 @@ step "Unpack puppet-runtime" do
87
95
  runtime_suffix = ".tar.gz"
88
96
 
89
97
  agents.each do |host|
98
+ next if host['has_runtime'] || host['use_existing_container']
90
99
 
91
100
  platform_tag = host['packaging_platform']
92
101
  if platform_tag =~ /windows/
@@ -1,5 +1,6 @@
1
1
  test_name 'Puppet User and Group' do
2
2
  hosts.each do |host|
3
+ next if host['use_existing_container']
3
4
  step "ensure puppet user and group added to all nodes because this is what the packages do" do
4
5
  on host, puppet("resource user puppet ensure=present")
5
6
  end
@@ -76,6 +76,8 @@ A4GBAFjOKer89961zgK5F7WF0bnj4JXMJTENAKaSbn+2kmOeUJXRmm/kEd5jhW6Y
76
76
  EOM
77
77
 
78
78
  hosts.each do |host|
79
+ next if host['use_existing_container']
80
+
79
81
  step "Installing Geotrust CA cert"
80
82
  create_remote_file(host, "geotrustglobal.pem", GEOTRUST_GLOBAL_CA)
81
83
  on host, "chmod 644 geotrustglobal.pem"
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: 1.18.5
4
+ version: 1.18.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-27 00:00:00.000000000 Z
11
+ date: 2019-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec