Skip to content

Commit

Permalink
(SIMP-9780) Puppetsync: Remove Puppet 5, Support 7 (#59)
Browse files Browse the repository at this point in the history
This patch:

  * Removes Puppet 5 from `metadata.json` and the GHA & GLCI matrix
  * Ensures support for Puppet 7 in `metadata.json`
    * Ensures Pup 7 for module deps stdlib and concat (if present)
  * Updates GLCI and GHA matrix to model Puppet PE using Puppet 6.22.1
  * Bumps Gemfile's simp-rake-helpers and simp-beaker-helpers min vers
  * Removes `.pmtignore` and adds `.pdkignore`
  * Ensures `.git` is added to fixture URLs

The patch enforces a standardized asset baseline using simp/puppetsync,
and may apply other updates to ensure conformity.

[SIMP-9876] #close
[SIMP-9780] #comment Drop Puppet 5 in pupmod-simp-vnc
[SIMP-9670] #comment update Puppet 6.22.1 in pupmod-simp-vnc
[SIMP-9606] #comment Switch pupmod-simp-vnc from .pmtignore to .pdkignore
[SIMP-9781] #comment bump Gemfile versions in pupmod-simp-vnc
[SIMP-9826] #comment Ensured fixture repo urls for pupmod-simp-vnc
  • Loading branch information
op-ct authored Jun 17, 2021
1 parent 150344e commit 0201556
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 81 deletions.
12 changes: 6 additions & 6 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
fixtures:
repositories:
dconf: https://github.com/simp/pupmod-simp-dconf
gdm: https://github.com/simp/pupmod-simp-gdm
inifile: https://github.com/puppetlabs/puppetlabs-inifile
simplib: https://github.com/simp/pupmod-simp-simplib
stdlib: https://github.com/simp/puppetlabs-stdlib
xinetd: https://github.com/simp/pupmod-simp-xinetd
dconf: https://github.com/simp/pupmod-simp-dconf.git
gdm: https://github.com/simp/pupmod-simp-gdm.git
inifile: https://github.com/puppetlabs/puppetlabs-inifile.git
simplib: https://github.com/simp/pupmod-simp-simplib.git
stdlib: https://github.com/simp/puppetlabs-stdlib.git
xinetd: https://github.com/simp/pupmod-simp-xinetd.git
symlinks:
vnc: "#{source_dir}"
15 changes: 5 additions & 10 deletions .github/workflows/pr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
# The testing matrix considers ruby/puppet versions supported by SIMP and PE:
# ------------------------------------------------------------------------------
# Release Puppet Ruby EOL
# SIMP 6.4 5.5 2.40 TBD
# PE 2018.1 5.5 2.40 2021-01 (LTS overlap)
# PE 2019.8 6.18 2.5 2022-12 (LTS)
# PE 2019.8 6.22 2.5 2022-12 (LTS)
# PE 2021.Y 7.x 2.7 Quarterly updates
#
# https://puppet.com/docs/pe/2018.1/component_versions_in_recent_pe_releases.html
# https://puppet.com/docs/pe/latest/component_versions_in_recent_pe_releases.html
# https://puppet.com/misc/puppet-enterprise-lifecycle
# https://puppet.com/docs/pe/2018.1/overview/getting_support_for_pe.html
# ==============================================================================
#
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
Expand Down Expand Up @@ -111,12 +109,9 @@ jobs:
strategy:
matrix:
puppet:
- label: 'Puppet 6.18 [SIMP 6.5/PE 2019.8]'
puppet_version: '~> 6.18.0'
- label: 'Puppet 6.22 [SIMP 6.6/PE 2019.8]'
puppet_version: '~> 6.22.1'
ruby_version: '2.5'
- label: 'Puppet 5.5 [SIMP 6.4/PE 2018.1]'
puppet_version: '~> 5.5.22'
ruby_version: '2.4'
- label: 'Puppet 7.x'
puppet_version: '~> 7.0'
ruby_version: '2.7'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dist
/.rspec_system
/.vagrant
/.bundle
/.vendor
/vendor
/junit
/log
Expand Down
31 changes: 3 additions & 28 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
# https://puppet.com/docs/pe/2018.1/overview/getting_support_for_pe.html
# ------------------------------------------------------------------------------
# Release Puppet Ruby EOL
# SIMP 6.4 5.5 2.4.10 TBD
# PE 2018.1 5.5 2.4.10 2021-01 (LTS overlap)
# PE 2019.8 6.18 2.5.7 2022-12 (LTS)
# PE 2019.8 6.22 2.5.7 2022-12 (LTS)
---

stages:
Expand All @@ -32,7 +30,7 @@ variables:
# anchors. If it is still `UNDEFINED`, all the other setting from the job's
# anchor are also missing.
PUPPET_VERSION: 'UNDEFINED' # <- Matrixed jobs MUST override this (or fail)
BUNDLER_VERSION: '1.17.1'
BUNDLER_VERSION: '2.2.19'
SIMP_MATRIX_LEVEL: '1'
SIMP_FORCE_RUN_MATRIX: 'no'

Expand Down Expand Up @@ -224,20 +222,6 @@ variables:
# Puppet Versions
#-----------------------------------------------------------------------

.pup_5_x: &pup_5_x
image: 'ruby:2.4'
variables:
PUPPET_VERSION: '~> 5.0'
BEAKER_PUPPET_COLLECTION: 'puppet5'
MATRIX_RUBY_VERSION: '2.4'

.pup_5_pe: &pup_5_pe
image: 'ruby:2.4'
variables:
PUPPET_VERSION: '5.5.22'
BEAKER_PUPPET_COLLECTION: 'puppet5'
MATRIX_RUBY_VERSION: '2.4'

.pup_6_x: &pup_6_x
image: 'ruby:2.5'
variables:
Expand All @@ -248,7 +232,7 @@ variables:
.pup_6_pe: &pup_6_pe
image: 'ruby:2.5'
variables:
PUPPET_VERSION: '6.18.0'
PUPPET_VERSION: '6.22.1'
BEAKER_PUPPET_COLLECTION: 'puppet6'
MATRIX_RUBY_VERSION: '2.5'

Expand Down Expand Up @@ -325,15 +309,6 @@ pup-lint:
# Unit Tests
#-----------------------------------------------------------------------

pup5.x-unit:
<<: *pup_5_x
<<: *unit_tests
<<: *with_SIMP_SPEC_MATRIX_LEVEL_2

pup5.pe-unit:
<<: *pup_5_pe
<<: *unit_tests

pup6.x-unit:
<<: *pup_6_x
<<: *unit_tests
Expand Down
57 changes: 57 additions & 0 deletions .pdkignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# .pdkignore masks files from inclusion by `pdk build`.
#
# It is used by CI when building modules to publish to the Puppet Forge and to
# mask symlinks from the `pdk build` test in the module's RELENG checks.
# ------------------------------------------------------------------------------
# NOTICE: **This file is maintained with puppetsync**
#
# This file is automatically updated as part of a puppet module baseline.
# The next baseline sync will overwrite any local changes made to this file.
# ------------------------------------------------------------------------------
.*.sw?
.git/
.metadata
.yardoc
.yardwarns
*.iml
/.bundle/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/dist/
/tmp/
/vendor/
/.vendor/
/convert_report.txt
/update_report.txt
.DS_Store
.project
.envrc
/inventory.yaml
/appveyor.yml
/.fixtures.yml
/Gemfile
/.gitattributes
/.gitignore
/.github/
/.gitlab-ci.yml
/.pdkignore
/.puppet-lint.rc
/.sync.yml
/.pmtignore
/Rakefile
/rakelib/
/.rspec
/.rubocop.yml
/.travis.yml
/.yardopts
/spec/
/.vscode/
/tests/
31 changes: 0 additions & 31 deletions .pmtignore

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
* Thu Jun 17 2021 Chris Tessmer <[email protected]> - 7.2.0
- Removed support for Puppet 5
- Ensured support for Puppet 7 in requirements and stdlib

* Fri Jan 29 2021 Jeanne Greulich <[email protected]> - 7.1.2
- Added EL8 support after verifying the module worked on EL8 machines.

Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ENV['PDK_DISABLE_ANALYTICS'] ||= 'true'
gem_sources.each { |gem_source| source gem_source }

group :test do
puppet_version = ENV['PUPPET_VERSION'] || '~> 6.18'
puppet_version = ENV['PUPPET_VERSION'] || '~> 6.22'
major_puppet_version = puppet_version.scan(/(\d+)(?:\.|\Z)/).flatten.first.to_i
gem 'rake'
gem 'puppet', puppet_version
Expand All @@ -24,7 +24,7 @@ group :test do
gem 'puppet-lint-empty_string-check', :require => false
gem 'puppet-lint-trailing_comma-check', :require => false
gem 'simp-rspec-puppet-facts', ENV['SIMP_RSPEC_PUPPET_FACTS_VERSION'] || '~> 3.1'
gem 'simp-rake-helpers', ENV['SIMP_RAKE_HELPERS_VERSION'] || ['>= 5.11.5', '< 6']
gem 'simp-rake-helpers', ENV['SIMP_RAKE_HELPERS_VERSION'] || ['>= 5.12.1', '< 6']
gem( 'pdk', ENV['PDK_VERSION'] || '~> 2.0', :require => false) if major_puppet_version > 5
gem 'pathspec', '~> 0.2' if Gem::Requirement.create('< 2.6').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
end
Expand All @@ -38,7 +38,7 @@ end
group :system_tests do
gem 'beaker'
gem 'beaker-rspec'
gem 'simp-beaker-helpers', ENV['SIMP_BEAKER_HELPERS_VERSION'] || ['>= 1.21.4', '< 2']
gem 'simp-beaker-helpers', ENV['SIMP_BEAKER_HELPERS_VERSION'] || ['>= 1.23.2', '< 2']
end

# Evaluate extra gemfiles if they exist
Expand Down
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simp-vnc",
"version": "7.1.2",
"version": "7.2.0",
"author": "SIMP Team",
"summary": "Manages VNC",
"license": "Apache-2.0",
Expand All @@ -18,7 +18,7 @@
},
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.13.1 < 7.0.0"
"version_requirement": ">= 6.18.0 < 8.0.0"
},
{
"name": "simp/simplib",
Expand Down Expand Up @@ -55,7 +55,7 @@
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 5.0.0 < 7.0.0"
"version_requirement": ">= 6.22.1 < 8.0.0"
}
]
}

0 comments on commit 0201556

Please sign in to comment.