simp-beaker-helpers 1.18.7 → 1.19.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,36 +1,42 @@
1
1
  ---
2
- language: ruby
3
- cache: bundler
4
- sudo: false
5
- before_install:
6
- - rm Gemfile.lock || true
7
- bundler_args: "--without development --path .vendor"
2
+ language: shell
8
3
  notifications:
9
4
  email: false
10
- rvm:
11
- - 2.4.4
12
- env:
13
- - SIMP_SKIP_NON_SIMPOS_TESTS=1
14
- script:
15
- - bundle exec rake spec
16
- before_deploy:
17
- - bundle exec rake clobber
18
- - "export GEM_VERSION=`ruby -r ./lib/simp/beaker_helpers/version.rb -e 'puts Simp::BeakerHelpers::VERSION'`"
19
- - '[[ $TRAVIS_TAG =~ ^${GEM_VERSION}$ ]]'
20
- deploy:
21
- - provider: rubygems
22
- gemspec: simp-beaker-helpers.gemspec
23
- gem: simp-beaker-helpers
24
- api_key:
25
- secure: "AlnBx0dBSxn+S97n0h14ltKUOA+6v0bc7QZPIcwGJV9nnf1hKH3pf9La1TVknEx7XgpAcM9jusQJ7hBlqvSq8z8SFF0bZk1EgSRIKc1cuYPLiGyUM2O7+AFHyCy3iCnPvKeoQmE/BJb5O1dGnbmSbf4A0fqLxA7jiHG1j7z+cnmJB1i67wovDfl13TsOXyBfbespWBMMc0BKAw56FPs9XggAk2cNusS3hd5tqW1AZPT2/xwt+d8ngkmO96u8QcichYRFQ+w+XW4H0w935wNg/dWiskJlt7TIYVAh4Ko5s2DZKf52Tne8TugALSn0LhRatpp7sw1FTTpteCW8UqK8uwGC2hM4pZViAOv4P1YObz2IPOZPriBl+cCayJdMKnotkUJliAMnw5TLiSWKLou+S0Pdj2h3fJZWdOEwRPMzIVoJtsOHG3GdNcPL6f7iU0vP/wr6FeR3uWa+fA7NHRi2Du955O8JpogjdrW08ahcAEwhtI3A4mrA08wN09axsrwr093uDRm/5h4FHyAhExJ0YiA/6kcPpUvILcLStyHe0RQDICQMdsQo2DSbnL65w3QjFa2fML2Shf9cRwX06+ia2BxozWzFD/6p3RiRtPxphnbFiUdjYSGWcwCcUgbJx9SW04lSSxOhpyItuXgxZqiybkzstXd6riu5zwg1R8TWk34="
26
- on:
27
- tags: true
28
- rvm: 2.4.4
29
- condition: "($SKIP_PUBLISH != true)"
30
- - provider: releases
31
- api_key:
32
- secure: "I41p4aqjkrNDHJhZ5gWC4gzn7BVwEYRm5Q3PAxQRSIUDB/QTVgNqZx8YptkuIvSGpw8kIywyZg3NKdzGUO8aJJ0NlXapL7e9qQIigkYhdaCZjZFG5zIxdOFs4sVoz/6vnQT9JIcGWy7uS5xiNOulGvfEWU78+e+I9yPdT74RApve5VAVT/km5lV5ldRnwwehLnTx+volUlnOD8rwfizoVLqFTrfRfr4cVMF605UYyaiVxHF50hywFRZoAdVcMEhlLQnQXfz/ZsLMJLJm9eCpjQ989N0oX6theSLCcv7QtHcWMXydjWMcpuTfBZSFrwUVbC23uMOKTJVEWq5LMG3m2L6hP3//2gvUzGhOVLvoGuC+erboB7QoXdcoOgXY+dTZPMcPBxpArdDLWVQSLTvPs05QzpaUdRLVMC/kD1d1EudlEicgkNgNDBhBn3089nVmvKndbKLvj+23a5AQVVbs+8C0x+SJvTc9N2N+bmuH7jIJPrEvWK4xwcQa+g2M/EBv05jaEdSErlVa6B6UKCH0Lea9rpy1se9vn5OzpaaMCCJIpcpQqHDjo0PMAQXBSbqjKcBei6lR5fIFl5UO9gWP1v8PGPuCzGTBivQ92XlgV1TWXmdbJHwIuSbJx3Ali7Wp19RR4E4uHC+TPFssvgkh9ZLkORnWWS35wzzU1LkwWx0="
33
- on:
34
- tags: true
35
- rvm: 2.4.4
36
- condition: "($SKIP_PUBLISH != true)"
5
+ stages:
6
+ - name: deploy
7
+ if: 'tag IS present'
8
+
9
+ ### Testing on Travis CI is indefinitely disabled
10
+ ###
11
+ ### See:
12
+ ### * https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
13
+ ### * https://simp-project.atlassian.net/browse/SIMP-8703
14
+ jobs:
15
+ include:
16
+ - stage: deploy
17
+ script: skip
18
+ cache: bundler
19
+ before_install:
20
+ - rm Gemfile.lock || true
21
+ bundler_args: "--without development --path .vendor"
22
+ language: ruby
23
+ rvm: 2.4.5
24
+ before_deploy:
25
+ - bundle exec rake clobber
26
+ - "export GEM_VERSION=`ruby -r ./lib/simp/beaker_helpers/version.rb -e 'puts Simp::BeakerHelpers::VERSION'`"
27
+ - '[[ $TRAVIS_TAG =~ ^${GEM_VERSION}$ ]]'
28
+ deploy:
29
+ - provider: rubygems
30
+ gemspec: simp-beaker-helpers.gemspec
31
+ gem: simp-beaker-helpers
32
+ token:
33
+ secure: "AlnBx0dBSxn+S97n0h14ltKUOA+6v0bc7QZPIcwGJV9nnf1hKH3pf9La1TVknEx7XgpAcM9jusQJ7hBlqvSq8z8SFF0bZk1EgSRIKc1cuYPLiGyUM2O7+AFHyCy3iCnPvKeoQmE/BJb5O1dGnbmSbf4A0fqLxA7jiHG1j7z+cnmJB1i67wovDfl13TsOXyBfbespWBMMc0BKAw56FPs9XggAk2cNusS3hd5tqW1AZPT2/xwt+d8ngkmO96u8QcichYRFQ+w+XW4H0w935wNg/dWiskJlt7TIYVAh4Ko5s2DZKf52Tne8TugALSn0LhRatpp7sw1FTTpteCW8UqK8uwGC2hM4pZViAOv4P1YObz2IPOZPriBl+cCayJdMKnotkUJliAMnw5TLiSWKLou+S0Pdj2h3fJZWdOEwRPMzIVoJtsOHG3GdNcPL6f7iU0vP/wr6FeR3uWa+fA7NHRi2Du955O8JpogjdrW08ahcAEwhtI3A4mrA08wN09axsrwr093uDRm/5h4FHyAhExJ0YiA/6kcPpUvILcLStyHe0RQDICQMdsQo2DSbnL65w3QjFa2fML2Shf9cRwX06+ia2BxozWzFD/6p3RiRtPxphnbFiUdjYSGWcwCcUgbJx9SW04lSSxOhpyItuXgxZqiybkzstXd6riu5zwg1R8TWk34="
34
+ on:
35
+ tags: true
36
+ condition: "($SKIP_PUBLISH != true)"
37
+ - provider: releases
38
+ token:
39
+ secure: "I41p4aqjkrNDHJhZ5gWC4gzn7BVwEYRm5Q3PAxQRSIUDB/QTVgNqZx8YptkuIvSGpw8kIywyZg3NKdzGUO8aJJ0NlXapL7e9qQIigkYhdaCZjZFG5zIxdOFs4sVoz/6vnQT9JIcGWy7uS5xiNOulGvfEWU78+e+I9yPdT74RApve5VAVT/km5lV5ldRnwwehLnTx+volUlnOD8rwfizoVLqFTrfRfr4cVMF605UYyaiVxHF50hywFRZoAdVcMEhlLQnQXfz/ZsLMJLJm9eCpjQ989N0oX6theSLCcv7QtHcWMXydjWMcpuTfBZSFrwUVbC23uMOKTJVEWq5LMG3m2L6hP3//2gvUzGhOVLvoGuC+erboB7QoXdcoOgXY+dTZPMcPBxpArdDLWVQSLTvPs05QzpaUdRLVMC/kD1d1EudlEicgkNgNDBhBn3089nVmvKndbKLvj+23a5AQVVbs+8C0x+SJvTc9N2N+bmuH7jIJPrEvWK4xwcQa+g2M/EBv05jaEdSErlVa6B6UKCH0Lea9rpy1se9vn5OzpaaMCCJIpcpQqHDjo0PMAQXBSbqjKcBei6lR5fIFl5UO9gWP1v8PGPuCzGTBivQ92XlgV1TWXmdbJHwIuSbJx3Ali7Wp19RR4E4uHC+TPFssvgkh9ZLkORnWWS35wzzU1LkwWx0="
40
+ on:
41
+ tags: true
42
+ condition: "($SKIP_PUBLISH != true)"
@@ -1,3 +1,37 @@
1
+ ### 1.19.3 / 2021-01-01
2
+ * Fixed:
3
+ * Ensure that `pfact_on` can handle fact dot notation
4
+ * Changed:
5
+ * Silenced some of the noisy commands that didn't provide value-add output
6
+
7
+ ### 1.19.2 / 2020-12-19
8
+ * Fixed:
9
+ * Fixed an issue with pfact_on
10
+
11
+ ### 1.19.1 / 2020-12-02
12
+ * Fixed:
13
+ * Bumped the core puppet version to 6.X
14
+ * Fixed the file_content_on method
15
+ * Removed EL 6 support from the tests since the core repos are defunct
16
+ * Started removing some of the puppet 4 tests
17
+
18
+ ### 1.19.0 / 2020-09-30
19
+ * Fixed:
20
+ * rsync handling has a better check to see if rsync actually works prior to
21
+ using it. The old method had the potential to try and use rsync even if it
22
+ no longer worked (FIPS flipped for example).
23
+ * Changed:
24
+ * Migrated from PackageCloud to the SIMP download server for updates moving
25
+ forward.
26
+
27
+ ### 1.18.9 / 2020-08-04
28
+ * Change windows 2012r2 VM to work around issues where the old image had
29
+ duplicate ports trying to be opened
30
+ * Increase test CA bits to 4096
31
+
32
+ ### 1.18.8 / 2020-07-14
33
+ * Allow the beaker version to be pinned by environment variable
34
+
1
35
  ### 1.18.7 / 2020-07-07
2
36
  * Fix host reference bug when switching to FIPS mode
3
37
  * Ensure that net-ssh 6+ can access older FIPS systems
data/Gemfile CHANGED
@@ -13,11 +13,38 @@ gem 'bundler'
13
13
  gem 'rake'
14
14
 
15
15
  group :system_tests do
16
- gem 'beaker'
16
+ beaker_gem_options = ENV.fetch('BEAKER_GEM_OPTIONS', ['>= 4.17.0', '< 5.0.0'])
17
+
18
+ if "#{beaker_gem_options}".include?(':')
19
+ # Just pass in BEAKER_GEM_OPTIONS as a string that would represent the usual
20
+ # hash of options.
21
+ #
22
+ # Something like: BEAKER_GEM_OPTIONS=':git => "https://my.repo/beaker.git", :tag => "1.2.3"'
23
+ #
24
+ # No, this isn't robust, but it's not really an 'every day' sort of thing
25
+ # and safer than an `eval`
26
+ begin
27
+ gem 'beaker', Hash[
28
+ beaker_gem_options.split(',').map do |x| # Split passed options on k/v pairs
29
+ x.gsub('"', '').strip.split(/:\s|\s+=>\s+/) # Allow for either format hash keys
30
+ end.map do |k,v|
31
+ [
32
+ k.delete(':').to_sym, # Convert all keys to symbols
33
+ v.strip
34
+ ]
35
+ end
36
+ ] # Convert the whole thing to a valid Hash
37
+ rescue => e
38
+ raise "Invalid BEAKER_GEM_OPTIONS: '#{beaker_gem_options}' => '#{e}'"
39
+ end
40
+ else
41
+ gem 'beaker', beaker_gem_options
42
+ end
43
+
17
44
  gem 'beaker-rspec'
18
45
  gem 'beaker-windows'
19
46
  gem 'net-ssh'
20
- gem 'puppet', ENV.fetch('PUPPET_VERSION', '~> 5.0')
47
+ gem 'puppet', ENV.fetch('PUPPET_VERSION', '~> 6.0')
21
48
  gem 'puppetlabs_spec_helper'
22
49
  gem 'rubocop'
23
50
  gem 'rubocop-rspec'
@@ -93,7 +93,7 @@ emailAddress = optional
93
93
 
94
94
  ####################################################################
95
95
  [ req ]
96
- default_bits = 2048
96
+ default_bits = 4096
97
97
  default_keyfile = privkey.pem
98
98
  distinguished_name = req_distinguished_name
99
99
  attributes = req_attributes
@@ -96,7 +96,7 @@ emailAddress = optional
96
96
 
97
97
  ####################################################################
98
98
  [ req ]
99
- default_bits = 2048
99
+ default_bits = 4096
100
100
  default_keyfile = privkey.pem
101
101
  distinguished_name = req_distinguished_name
102
102
  attributes = req_attributes
@@ -30,20 +30,44 @@ module Simp::BeakerHelpers
30
30
  ).output.strip == '1'
31
31
  end
32
32
 
33
+ def rsync_functional_on?(sut)
34
+ # We have to check if rsync *still* works otherwise
35
+ return false if (@rsync_functional == false)
36
+
37
+ require 'facter'
38
+ unless Facter::Util::Resolution.which('rsync')
39
+ @rsync_functional = false
40
+ return @rsync_functional
41
+ end
42
+
43
+ require 'tempfile'
44
+
45
+ testfile = Tempfile.new('rsync_check')
46
+ testfile.puts('test')
47
+ testfile.close
48
+
49
+ begin
50
+ rsync_to(sut, testfile.path, sut.system_temp_path)
51
+ rescue Beaker::Host::CommandFailure
52
+ @rsync_functional = false
53
+ return false
54
+ ensure
55
+ testfile.unlink
56
+ end
57
+
58
+ return true
59
+ end
60
+
33
61
  # Figure out the best method to copy files to a host and use it
34
62
  #
35
63
  # Will create the directories leading up to the target if they don't exist
36
64
  def copy_to(sut, src, dest, opts={})
37
- unless fips_enabled(sut) || @has_rsync
38
- %x{which rsync 2>/dev/null}.strip
39
-
40
- @has_rsync = !$?.nil? && $?.success?
41
- end
42
-
43
65
  sut.mkdir_p(File.dirname(dest))
44
66
 
45
67
  if sut[:hypervisor] == 'docker'
46
68
  exclude_list = []
69
+ opts[:silent] ||= true
70
+
47
71
  if opts.has_key?(:ignore) && !opts[:ignore].empty?
48
72
  opts[:ignore].each do |value|
49
73
  exclude_list << "--exclude '#{value}'"
@@ -57,7 +81,7 @@ module Simp::BeakerHelpers
57
81
  container_id = sut.host_hash[:docker_container_id]
58
82
  end
59
83
  %x(tar #{exclude_list.join(' ')} -hcf - -C "#{File.dirname(src)}" "#{File.basename(src)}" | docker exec -i "#{container_id}" tar -C "#{dest}" -xf -)
60
- elsif @has_rsync && sut.check_for_command('rsync')
84
+ elsif rsync_functional_on?(sut)
61
85
  # This makes rsync_to work like beaker and scp usually do
62
86
  exclude_hack = %(__-__' -L --exclude '__-__)
63
87
 
@@ -92,9 +116,15 @@ module Simp::BeakerHelpers
92
116
 
93
117
  # use the `puppet fact` face to look up facts on an SUT
94
118
  def pfact_on(sut, fact_name)
95
- facts_json = on(sut,'puppet facts find xxx').output
96
- facts = JSON.parse(facts_json).fetch( 'values' )
97
- facts.fetch(fact_name)
119
+ require 'ostruct'
120
+
121
+ if sut.which('puppet').empty?
122
+ fact_on(sut, fact_name, :silent => true)
123
+ else
124
+ facts_json = on(sut,'puppet facts find garbage_xxx', :silent => true).stdout
125
+ facts = JSON.parse(facts_json, object_class: OpenStruct).values
126
+ facts.dig(*(fact_name.split('.'))) || ''
127
+ end
98
128
  end
99
129
 
100
130
  # Returns the modulepath on the SUT, as an Array
@@ -584,7 +614,7 @@ module Simp::BeakerHelpers
584
614
  end
585
615
 
586
616
  def sosreport(sut, dest='sosreports')
587
- sut.install_package('sos')
617
+ on(sut, 'puppet resource package sos ensure=latest')
588
618
  on(sut, 'sosreport --batch')
589
619
 
590
620
  files = on(sut, 'ls /var/tmp/sosreport* /tmp/sosreport* 2>/dev/null', :accept_all_exit_codes => true).output.lines.map(&:strip)
@@ -864,10 +894,10 @@ done
864
894
  file_content = nil
865
895
 
866
896
  if file_exists_on(sut, path)
867
- Dir.mktempdir do |dir|
868
- scp_from(host, path, dir)
897
+ Dir.mktmpdir do |dir|
898
+ scp_from(sut, path, dir)
869
899
 
870
- file_content = File.read(File.basename(path))
900
+ file_content = File.read(File.join(dir,File.basename(path)))
871
901
  end
872
902
  end
873
903
 
@@ -958,7 +988,7 @@ done
958
988
  # @returns [String] Path to the Hieradata directory on the target system
959
989
  def hiera_datadir(sut)
960
990
  # This output lets us know where Hiera is configured to look on the system
961
- puppet_lookup_info = on(sut, 'puppet lookup --explain test__simp__test').output.strip.lines
991
+ puppet_lookup_info = on(sut, 'puppet lookup --explain test__simp__test', :silent => true).output.strip.lines
962
992
 
963
993
  if sut.puppet_configprint['manifest'].nil? || sut.puppet_configprint['manifest'].empty?
964
994
  fail("No output returned from `puppet config print manifest` on #{sut}")
@@ -1170,62 +1200,73 @@ done
1170
1200
  run_puppet_install_helper(install_info[:puppet_install_type], install_info[:puppet_install_version])
1171
1201
  end
1172
1202
 
1173
- # Configure all SIMP repos on a host and enable all but those listed in the disable list
1203
+ # Configure all SIMP repos on a host and disable all repos in the disable Array
1174
1204
  #
1175
- # @param sut Host on which to configure SIMP repos
1176
- # @param disable List of SIMP repos to disable
1177
- # @raise if disable contains an invalid repo name.
1205
+ # @param sut [Beaker::Host] Host on which to configure SIMP repos
1206
+ # @param disable [Array[String]] List of repos to disable
1207
+ # @raise [StandardError] if disable contains an invalid repo name.
1178
1208
  #
1179
1209
  # Examples:
1180
1210
  # install_simp_repos( myhost ) # install all the repos an enable them.
1181
1211
  # install_simp_repos( myhost, ['simp']) # install the repos but disable the simp repo.
1182
1212
  #
1183
- # Current set of valid SIMP repo names:
1184
- # 'simp'
1185
- # 'simp_deps'
1213
+ # Valid repo names include any repository available on the system.
1186
1214
  #
1187
- def install_simp_repos(sut, disable = [] )
1188
- repos = {
1189
- 'simp' => {
1190
- :baseurl => 'https://packagecloud.io/simp-project/6_X/el/$releasever/$basearch',
1191
- :gpgkey => ['https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP',
1192
- 'https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6'
1193
- ],
1194
- :gpgcheck => 1,
1195
- :sslverify => 1,
1196
- :sslcacert => '/etc/pki/tls/certs/ca-bundle.crt',
1197
- :metadata_expire => 300
1198
- },
1199
- 'simp_deps' => {
1200
- :baseurl => 'https://packagecloud.io/simp-project/6_X_Dependencies/el/$releasever/$basearch',
1201
- :gpgkey => ['https://raw.githubusercontent.com/NationalSecurityAgency/SIMP/master/GPGKEYS/RPM-GPG-KEY-SIMP',
1202
- 'https://download.simp-project.com/simp/GPGKEYS/RPM-GPG-KEY-SIMP-6',
1203
- 'https://yum.puppet.com/RPM-GPG-KEY-puppetlabs',
1204
- 'https://yum.puppet.com/RPM-GPG-KEY-puppet',
1205
- 'https://apt.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-96',
1206
- 'https://artifacts.elastic.co/GPG-KEY-elasticsearch',
1207
- 'https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana',
1208
- 'https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-$releasever'
1209
- ],
1210
- :gpgcheck => 1,
1211
- :sslverify => 1,
1212
- :sslcacert => '/etc/pki/tls/certs/ca-bundle.crt',
1213
- :metadata_expire => 300
1214
- }
1215
- }
1216
- # Verify that the repos passed to disable are in the list of valid repos
1217
- disable.each { |d|
1218
- unless repos.has_key?(d)
1219
- raise("ERROR: install_simp_repo - disable contains invalid SIMP repo '#{d}'.")
1215
+ # For backwards compatibility purposes, the following translations are
1216
+ # automatically performed:
1217
+ #
1218
+ # * 'simp'
1219
+ # * 'simp-community-simp'
1220
+ #
1221
+ # * 'simp_deps'
1222
+ # * 'simp-community-epel'
1223
+ # * 'simp-community-postgres'
1224
+ # * 'simp-community-puppet'
1225
+ #
1226
+ def install_simp_repos(sut, disable = [])
1227
+ # NOTE: Do *NOT* use puppet in this method since it may not be available yet
1228
+
1229
+ if on(sut, 'rpm -q yum-utils', :accept_all_exit_codes => true).exit_code != 0
1230
+ on(sut, 'yum -y install yum-utils')
1231
+ end
1232
+
1233
+ if on(sut, 'rpm -q simp-release-community', :accept_all_exit_codes => true).exit_code != 0
1234
+ on(sut, 'yum -y install "https://download.simp-project.com/simp-release-community.rpm"')
1235
+ end
1236
+
1237
+ to_disable = disable.dup
1238
+
1239
+ unless to_disable.empty?
1240
+ if to_disable.include?('simp')
1241
+ to_disable.delete('simp')
1242
+ to_disable << 'simp-community-simp'
1220
1243
  end
1221
- }
1222
- repo_manifest = ''
1223
- repos.each { | repo, metadata|
1224
- metadata[:enabled] = disable.include?(repo) ? 0 : 1
1225
- repo_manifest << create_yum_resource(repo, metadata)
1226
- }
1227
- apply_manifest_on(sut, repo_manifest, :catch_failures => true)
1228
- end
1229
- end
1230
1244
 
1245
+ if to_disable.include?('simp_deps')
1246
+ to_disable.delete('simp_deps')
1247
+ to_disable << 'simp-community-epel'
1248
+ to_disable << 'simp-community-postgres'
1249
+ to_disable << 'simp-community-puppet'
1250
+ end
1251
+
1252
+ # NOTE: This --enablerepo enables the repos for listing and is inherited
1253
+ # from YUM. This does not actually "enable" the repos, that would require
1254
+ # the "--enable" option (from yum-config-manager) :-D.
1255
+ #
1256
+ # Note: Certain versions of EL8 do not dump by default and EL7 does not
1257
+ # have the '--dump' option.
1258
+ available_repos = on(sut, %{yum-config-manager --enablerepo="*" || yum-config-manager --enablerepo="*" --dump}).stdout.lines.grep(/\A\[(.+)\]\Z/){|x| $1}
1259
+
1260
+ invalid_repos = (to_disable - available_repos)
1261
+
1262
+ # Verify that the repos passed to disable are in the list of valid repos
1263
+ unless invalid_repos.empty?
1264
+ logger.warn(%{WARN: install_simp_repo - requested repos to disable do not exist on the target system '#{invalid_repos.join("', '")}'.})
1265
+ end
1231
1266
 
1267
+ (to_disable - invalid_repos).each do |repo|
1268
+ on(sut, %{yum-config-manager --disable "#{repo}"})
1269
+ end
1270
+ end
1271
+ end
1272
+ end
@@ -5,7 +5,7 @@ module Simp::BeakerHelpers
5
5
  #
6
6
  # This is done so that we know if some new thing that we're using breaks the
7
7
  # oldest system that we support
8
- DEFAULT_PUPPET_AGENT_VERSION = '~> 5.0'
8
+ DEFAULT_PUPPET_AGENT_VERSION = '~> 6.0'
9
9
 
10
10
  SSG_REPO_URL = ENV['BEAKER_ssg_repo'] || 'https://github.com/ComplianceAsCode/content.git'
11
11
 
@@ -1,5 +1,5 @@
1
1
  module Simp; end
2
2
 
3
3
  module Simp::BeakerHelpers
4
- VERSION = '1.18.7'
4
+ VERSION = '1.19.3'
5
5
  end
@@ -9,18 +9,18 @@ HOSTS:
9
9
  server-el7:
10
10
  roles:
11
11
  - server
12
- - default
13
12
  - master
13
+ - default
14
14
  - el7
15
15
  platform: el-7-x86_64
16
16
  box: centos/7
17
17
  hypervisor: <%= hypervisor %>
18
18
 
19
- server-el6:
19
+ server-el8:
20
20
  roles:
21
- - el6
22
- platform: el-6-x86_64
23
- box: centos/6
21
+ - el8
22
+ platform: el-8-x86_64
23
+ box: centos/8
24
24
  hypervisor: <%= hypervisor %>
25
25
 
26
26
  CONFIG:
@@ -14,8 +14,8 @@ hosts.each do |host|
14
14
  expect(client_puppet_version.split('.').first).to eq(puppet_collection_version)
15
15
  end
16
16
  else
17
- it 'should not be running puppet 5' do
18
- expect(client_puppet_version.split('.').first).to eq '5'
17
+ it 'should be running puppet 6' do
18
+ expect(client_puppet_version.split('.').first).to eq '6'
19
19
  end
20
20
  end
21
21
  end