simp-beaker-helpers 1.10.11 → 1.10.12

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
  SHA256:
3
- metadata.gz: 500fd48e811328ef517392a2a27d5ae69bd4659d7299f0c3bc3359520fcdb9a4
4
- data.tar.gz: 403501b1ad5fb7ad7c29ed0b1dfd280dc6777c7b7368e78ca44226724e7eff51
3
+ metadata.gz: cf36c8545e4449b0aae126e8b2a14737920f3ce3aa26b6de91944629a7d1a00c
4
+ data.tar.gz: 855f981eb9fbccb5c94c5ae14c5017af99fb5e78443aeb487ac2fe459105c6bd
5
5
  SHA512:
6
- metadata.gz: 3196b545ccb9b78fbe6984f21d0c53c7609379c40e736c68500d0f9dffe016aebac33a53592a36d778c40d449fbc6c466c605bde3e6e30d80a2037f8c8e6ae68
7
- data.tar.gz: b283d5f0d969dae510dfe05a5b10c0edf3a9b508dc2287d2e936882101dbc7b5cbad74aed877cd1ab649b2577696fa0d1ff560d4dff48f5f15013d9aff7eefe5
6
+ metadata.gz: 7803b7360bcb5e0d99e0d9951fcb286d281ea7d4eebb026e849a622792ddfc605b8e246b9e882c86f70ba71ef7b51f32853e4d2295cb29ff8dc49633bdd2fded
7
+ data.tar.gz: 8310fe33cb62702bb26e14eae00bce2e0c09ba7e5ade559eeddd9cf27bc4bc0af66b6abbc3d0dbdac8d0f2ad54a085d6bc667b1aa3f7d6d6e4a216cc493344a6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.10.12 / 2018-07-09
2
+ * Forced all parallelization to `false` by default due to random issues with
3
+ Beaker
4
+
1
5
  ### 1.10.11 / 2018-06-25
2
6
  * Pinned `fog-openstack` to `0.1.25` for all releases due to dropping support
3
7
  for Ruby 1.9 in `0.1.26`. This should be removed once we drop support for
data/README.md CHANGED
@@ -35,6 +35,7 @@ Methods to assist beaker acceptance tests for SIMP.
35
35
  * [`install_puppet`](#install_puppet)
36
36
  * [Environment variables](#environment-variables-1)
37
37
  * [`BEAKER_fips`](#beaker_fips)
38
+ * [`BEAKER_SIMP_parallel`](#beaker_simp_parallel)
38
39
  * [`BEAKER_spec_prep`](#beaker_spec_prep)
39
40
  * [`BEAKER_stringify_facts`](#beaker_stringify_facts)
40
41
  * [`BEAKER_use_fixtures_dir_for_modules`](#beaker_use_fixtures_dir_for_modules)
@@ -339,6 +340,14 @@ spec_prep` to populate the missing modules using `.fixtures.yml`. Note that
339
340
  this will _not_ update modules that are already present under
340
341
  `spec/fixtures/modules`.
341
342
 
343
+ #### `BEAKER_SIMP_parallel`
344
+
345
+ _(Default: `no`)_ Execute each SIMP host setup method such as
346
+ `Simp::BeakerHelpers::copy_fixure_modules_to` and `Simp::BeakerHelpers::fix_errata_on`
347
+ on all hosts in a node set in parallel. Uses parallelization provided by Beaker.
348
+
349
+ **NOTE:** Beaker's parallelization capability does not always work, so a word
350
+ to the wise is sufficient.
342
351
 
343
352
  #### `BEAKER_stringify_facts`
344
353
  #### `BEAKER_use_fixtures_dir_for_modules`
@@ -165,7 +165,8 @@ module Simp::BeakerHelpers
165
165
  opts[:pluginsync] = opts.fetch(:pluginsync, true)
166
166
 
167
167
  unless ENV['BEAKER_copy_fixtures'] == 'no'
168
- block_on(suts, :run_in_parallel => true) do |sut|
168
+ parallel = (ENV['BEAKER_SIMP_parallel'] == 'yes')
169
+ block_on(suts, :run_in_parallel => parallel) do |sut|
169
170
  STDERR.puts " ** copy_fixture_modules_to: '#{sut}'" if ENV['BEAKER_helpers_verbose']
170
171
 
171
172
  # Use spec_prep to provide modules (this supports isolated networks)
@@ -214,7 +215,8 @@ module Simp::BeakerHelpers
214
215
  def enable_fips_mode_on( suts = hosts )
215
216
  puts '== configuring FIPS mode on SUTs'
216
217
  puts ' -- (use BEAKER_fips=no to disable)'
217
- block_on(suts, :run_in_parallel => true) do |sut|
218
+ parallel = (ENV['BEAKER_SIMP_parallel'] == 'yes')
219
+ block_on(suts, :run_in_parallel => parallel) do |sut|
218
220
  puts " -- enabling FIPS on '#{sut}'"
219
221
 
220
222
  # We need to use FIPS compliant algorithms and keylengths as per the FIPS
@@ -327,7 +329,8 @@ DEFAULT_KERNEL_TITLE=`/sbin/grubby --info=\\\${DEFAULT_KERNEL_INFO} | grep -m1 t
327
329
  :timeout
328
330
  ]
329
331
 
330
- block_on(suts, :run_in_parallel => true) do |sut|
332
+ parallel = (ENV['BEAKER_SIMP_parallel'] == 'yes')
333
+ block_on(suts, :run_in_parallel => parallel) do |sut|
331
334
  if sut['yum_repos']
332
335
  sut['yum_repos'].each_pair do |repo, metadata|
333
336
  repo_manifest = %(yumrepo { #{repo}:)
@@ -362,8 +365,8 @@ DEFAULT_KERNEL_TITLE=`/sbin/grubby --info=\\\${DEFAULT_KERNEL_INFO} | grep -m1 t
362
365
 
363
366
  # Apply known OS fixes we need to run Beaker on each SUT
364
367
  def fix_errata_on( suts = hosts )
365
-
366
- block_on(suts, :run_in_parallel => true) do |sut|
368
+ parallel = (ENV['BEAKER_SIMP_parallel'] == 'yes')
369
+ block_on(suts, :run_in_parallel => parallel) do |sut|
367
370
  # We need to be able to flip between server and client without issue
368
371
  on sut, 'puppet resource group puppet gid=52'
369
372
  on sut, 'puppet resource user puppet comment="Puppet" gid="52" uid="52" home="/var/lib/puppet" managehome=true'
@@ -556,7 +559,8 @@ done
556
559
  #
557
560
  # Can be passed any number of hosts either singly or as an Array
558
561
  def activate_interfaces(hosts)
559
- block_on(hosts, :run_in_parallel => true) do |host|
562
+ parallel = (ENV['BEAKER_SIMP_parallel'] == 'yes')
563
+ block_on(hosts, :run_in_parallel => parallel) do |host|
560
564
  interfaces_fact = retry_on(host,'facter interfaces', verbose: true).stdout
561
565
 
562
566
  interfaces = interfaces_fact.strip.split(',')
@@ -682,7 +686,8 @@ done
682
686
  noop => false
683
687
  }
684
688
  PLUGINSYNC_MANIFEST
685
- apply_manifest_on(hosts, pluginsync_manifest, :run_in_parallel => true)
689
+ parallel = (ENV['BEAKER_SIMP_parallel'] == 'yes')
690
+ apply_manifest_on(hosts, pluginsync_manifest, :run_in_parallel => parallel)
686
691
  end
687
692
 
688
693
 
@@ -1,5 +1,5 @@
1
1
  module Simp; end
2
2
 
3
3
  module Simp::BeakerHelpers
4
- VERSION = '1.10.11'
4
+ VERSION = '1.10.12'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-beaker-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.11
4
+ version: 1.10.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-25 00:00:00.000000000 Z
12
+ date: 2018-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: beaker