Skip to content

Commit

Permalink
(SIMP-7928) Add EL8 support (#24)
Browse files Browse the repository at this point in the history
SIMP-7928 #close
SIMP-7202 #comment Add EL8 support to simp-issue
  • Loading branch information
trevor-vaughan authored and jeannegreulich committed Dec 19, 2019
1 parent 3cadb2d commit 4bde5b6
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 34 deletions.
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
.yardoc
dist/
pkg/
spec/fixtures/
spec/fixtures/*
!spec/fixtures/hieradata/
!spec/fixtures/hieradata/*
spec/fixtures/hieradata/hiera.yaml
spec/rp_env/
!/spec/hieradata/default.yaml
!/spec/fixtures/site.pp
.rspec_system
.vagrant/
.bundle/
Expand All @@ -14,3 +15,4 @@ vendor/
junit/
log/
doc/
.idea/
26 changes: 13 additions & 13 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# https://puppet.com/docs/pe/2018.1/overview/getting_support_for_pe.html
# ------------------------------------------------------------------------------
# Release Puppet Ruby EOL
# SIMP 6.3 5.5.10 2.4.5 TBD***
# SIMP 6.3 5.5.16 2.4.5 TBD***
# PE 2018.1 5.5.8 2.4.5 2020-05 (LTS)***
# PE 2019.0 6.0 2.5.1 2019-08-31^^^
#
Expand Down Expand Up @@ -69,10 +69,10 @@ variables:
BEAKER_PUPPET_COLLECTION: 'puppet5'
MATRIX_RUBY_VERSION: '2.4'

.pup_5_5_10: &pup_5_5_10
.pup_5_5_16: &pup_5_5_16
image: 'ruby:2.4'
variables:
PUPPET_VERSION: '5.5.10'
PUPPET_VERSION: '5.5.16'
BEAKER_PUPPET_COLLECTION: 'puppet5'
MATRIX_RUBY_VERSION: '2.4'

Expand Down Expand Up @@ -149,8 +149,8 @@ pup5-unit:
<<: *pup_5
<<: *unit_tests

pup5.5.10-unit:
<<: *pup_5_5_10
pup5.5.16-unit:
<<: *pup_5_5_16
<<: *unit_tests

pup6-unit:
Expand All @@ -159,26 +159,26 @@ pup6-unit:

# Acceptance tests
# ==============================================================================
pup5.5.10:
<<: *pup_5_5_10
pup5.5.16:
<<: *pup_5_5_16
<<: *acceptance_base
script:
- 'bundle exec rake beaker:suites'

pup5.5.10-fips:
<<: *pup_5_5_10
pup5.5.16-fips:
<<: *pup_5_5_16
<<: *acceptance_base
script:
- 'BEAKER_fips=yes bundle exec rake beaker:suites'

pup5.5.10-oel:
<<: *pup_5_5_10
pup5.5.16-oel:
<<: *pup_5_5_16
<<: *acceptance_base
script:
- 'bundle exec rake beaker:suites[default,oel]'

pup5.5.10-oel-fips:
<<: *pup_5_5_10
pup5.5.16-oel-fips:
<<: *pup_5_5_16
<<: *acceptance_base
<<: *only_with_SIMP_FULL_MATRIX
script:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* Mon Dec 16 2019 Trevor Vaughan <tvaughan@onyxpoint.com> - 0.2.0-0
- Add EL8 support

* Thu Aug 15 2019 Trevor Vaughan <tvaughan@onyxpoint.com> - 0.1.1-0
- Fix compliance engine data

Expand Down
9 changes: 4 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ gem_sources.each { |gem_source| source gem_source }

group :test do
gem 'rake'
gem 'puppet', ENV.fetch('PUPPET_VERSION', '~> 5.5')
gem 'puppet', ENV.fetch('PUPPET_VERSION', '~> 5.5')
gem 'rspec'
gem 'rspec-puppet'
gem 'hiera-puppet-helper'
Expand All @@ -13,9 +13,8 @@ group :test do
gem 'puppet-strings'
gem 'puppet-lint-empty_string-check', :require => false
gem 'puppet-lint-trailing_comma-check', :require => false
gem 'simp-rspec-puppet-facts', ENV.fetch('SIMP_RSPEC_PUPPET_FACTS_VERSION', '~> 2.2')
gem 'simp-rake-helpers', ENV.fetch('SIMP_RAKE_HELPERS_VERSION', '~> 5.6')
gem 'facterdb'
gem 'simp-rspec-puppet-facts', ENV.fetch('SIMP_RSPEC_PUPPET_FACTS_VERSION', ['>= 2.4.0', '< 3.0.0'] )
gem 'simp-rake-helpers', ENV.fetch('SIMP_RAKE_HELPERS_VERSION', ['>= 5.9', '< 6.0'])
end

group :development do
Expand All @@ -26,5 +25,5 @@ end
group :system_tests do
gem 'beaker'
gem 'beaker-rspec'
gem 'simp-beaker-helpers', ENV.fetch('SIMP_BEAKER_HELPERS_VERSION', '~> 1.12')
gem 'simp-beaker-helpers', ENV.fetch('SIMP_BEAKER_HELPERS_VERSION', ['>= 1.17.0', '< 2.0.0'])
end
13 changes: 8 additions & 5 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simp-issue",
"version": "0.1.1",
"version": "0.2.0",
"author": "SIMP Team",
"summary": "A SIMP Puppet module for managing /etc/issue",
"license": "Apache-2.0",
Expand All @@ -19,7 +19,7 @@
},
{
"name": "simp/simplib",
"version_requirement": ">= 3.1.0 < 4.0.0"
"version_requirement": ">= 3.1.0 < 5.0.0"
},
{
"name": "puppetlabs/stdlib",
Expand All @@ -31,21 +31,24 @@
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"6",
"7"
"7",
"8"
]
},
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"6",
"7"
"7",
"8"
]
},
{
"operatingsystem": "OracleLinux",
"operatingsystemrelease": [
"6",
"7"
"7",
"8"
]
}
],
Expand Down
9 changes: 5 additions & 4 deletions spec/acceptance/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,20 @@ HOSTS:
el6:
roles:
- default
- master
- client
platform: el-6-x86_64
box: centos/6
hypervisor: <%= hypervisor %>

el7:
roles:
- client
platform: el-7-x86_64
box: centos/7
hypervisor: <%= hypervisor %>

el8:
platform: el-8-x86_64
box: centos/8
hypervisor: <%= hypervisor %>

CONFIG:
log_level: verbose
type: aio
Expand Down
9 changes: 5 additions & 4 deletions spec/acceptance/nodesets/oel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,20 @@ HOSTS:
oel6:
roles:
- default
- master
- client
platform: el-6-x86_64
box: onyxpoint/oel-6-x86_64
hypervisor: <%= hypervisor %>

oel7:
roles:
- client
platform: el-7-x86_64
box: onyxpoint/oel-7-x86_64
hypervisor: <%= hypervisor %>

oel8:
platform: el-8-x86_64
box: generic/oracle8
hypervisor: <%= hypervisor %>

CONFIG:
log_level: verbose
type: aio
Expand Down
23 changes: 23 additions & 0 deletions spec/acceptance/suites/default/00_default_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
require 'spec_helper_acceptance'

test_name 'issue class'

describe 'issue class' do
let(:manifest) {
<<-EOS
class { 'issue': }
EOS
}

hosts.each do |host|
context "on #{host}" do
it 'should apply successfully' do
apply_manifest_on(host, manifest, :catch_failures => true)
end

it 'should be idempotent' do
apply_manifest_on(host, manifest, :catch_changes => true)
end
end
end
end

0 comments on commit 4bde5b6

Please sign in to comment.