Skip to content

Commit

Permalink
Major updates, see description
Browse files Browse the repository at this point in the history
Drop Debian 9, Debian 10, Ubuntu 18.04 as they are EOL
Add EL9, Debian 11, Ubuntu 20.04 and Ubuntu 22.04
Require Puppet 7 or Puppet 8
Update all module dependencies to support latest versions
  • Loading branch information
treydock committed Nov 17, 2023
1 parent abb82a3 commit bba319e
Show file tree
Hide file tree
Showing 34 changed files with 778 additions and 308 deletions.
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM puppet/pdk:latest

# [Optional] Uncomment this section to install additional packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

38 changes: 38 additions & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# devcontainer


For format details, see https://aka.ms/devcontainer.json.

For config options, see the README at:
https:/microsoft/vscode-dev-containers/tree/v0.140.1/containers/puppet

``` json
{
"name": "Puppet Development Kit (Community)",
"dockerFile": "Dockerfile",

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
}
}
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"puppet.puppet-vscode",
"rebornix.Ruby"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pdk --version",
}
```



17 changes: 17 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "Puppet Development Kit (Community)",
"dockerFile": "Dockerfile",

"settings": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
}
}
},

"extensions": [
"puppet.puppet-vscode",
"rebornix.Ruby"
]
}
17 changes: 8 additions & 9 deletions .fixtures-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@
# See https:/puppetlabs/puppetlabs_spec_helper#using-fixtures for details
---
fixtures:
repositories:
forge_modules:
stdlib:
repo: https:/puppetlabs/puppetlabs-stdlib.git
repo: puppetlabs/stdlib
postgresql:
repo: https:/puppetlabs/puppetlabs-postgresql.git
repo: puppetlabs/postgresql
# Needed by Postgresql module
apt:
repo: https:/puppetlabs/puppetlabs-apt.git
repo: puppetlabs/apt
python:
repo: https:/voxpupuli/puppet-python.git
repo: puppet/python
# Needed by Python module
epel:
repo: https:/voxpupuli/puppet-epel.git
repo: puppet/epel
systemd:
repo: https:/camptocamp/puppet-systemd.git
repo: puppet/systemd
yumrepo_core:
repo: https:/puppetlabs/puppetlabs-yumrepo_core
puppet_version: ">= 6.0.0"
repo: puppetlabs/yumrepo_core
symlinks:
patroni: "#{source_dir}"
31 changes: 15 additions & 16 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,29 @@
# See https:/puppetlabs/puppetlabs_spec_helper#using-fixtures for details
---
fixtures:
repositories:
forge_modules:
stdlib:
repo: https:/puppetlabs/puppetlabs-stdlib.git
ref: v6.0.0
repo: puppetlabs/stdlib
ref: '9.4.1'
postgresql:
repo: https:/puppetlabs/puppetlabs-postgresql.git
ref: v6.4.0
repo: puppetlabs/postgresql
ref: '10.0.2'
# Needed by Postgresql module
apt:
repo: https:/puppetlabs/puppetlabs-apt.git
ref: v7.5.0
repo: puppetlabs/apt
ref: '9.1.0'
python:
repo: https:/voxpupuli/puppet-python.git
ref: v4.1.0
repo: puppet/python
ref: '7.0.0'
# Needed by Python module
epel:
repo: https:/voxpupuli/puppet-epel.git
ref: v3.0.0
repo: puppet/epel
ref: '5.0.0'
systemd:
repo: https:/camptocamp/puppet-systemd.git
ref: 2.0.0
repo: puppet/systemd
ref: '6.1.0'
yumrepo_core:
repo: https:/puppetlabs/puppetlabs-yumrepo_core
ref: 1.0.1
puppet_version: ">= 6.0.0"
repo: puppetlabs/yumrepo_core
ref: '2.0.0'
symlinks:
patroni: "#{source_dir}"
42 changes: 20 additions & 22 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,35 @@ jobs:
fail-fast: false
matrix:
include:
- ruby: 2.5.7
puppet: 6
fixtures: .fixtures.yml
allow_failure: false
- ruby: 2.7.0
- ruby: 2.7.8
puppet: 7
fixtures: .fixtures.yml
allow_failure: false
- ruby: 2.4.9
puppet: 5
fixtures: .fixtures.yml
allow_failure: false
- ruby: 2.5.7
puppet: 6
- ruby: 2.7.8
puppet: 7
fixtures: .fixtures-latest.yml
allow_failure: true
- ruby: 2.7.0
puppet: 7
- ruby: 3.2.2
puppet: 8
fixtures: .fixtures.yml
allow_failure: false
- ruby: 3.2.2
puppet: 8
fixtures: .fixtures-latest.yml
allow_failure: true
env:
BUNDLE_WITHOUT: system_tests:release
PUPPET_GEM_VERSION: "~> ${{ matrix.puppet }}.0"
FACTER_GEM_VERSION: "< 4.0"
FIXTURES_YML: ${{ matrix.fixtures }}
name: Puppet ${{ matrix.puppet }} (Ruby ${{ matrix.ruby }} fixtures=${{ matrix.fixtures }})
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
cache-version: 2
bundler: '2.1.0'
- name: Validate
run: bundle exec rake check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint
Expand All @@ -59,14 +55,15 @@ jobs:
fail-fast: false
matrix:
set:
- "centos-7"
- "rocky-8"
- "debian-9"
- "debian-10"
- "ubuntu-1804"
- "el8"
- "el9"
- "debian-11"
- "ubuntu-2004"
- "ubuntu-2204"
- "el7"
puppet:
- "puppet6"
- "puppet7"
- "puppet8"
env:
BUNDLE_WITHOUT: development:release
BEAKER_debug: true
Expand All @@ -83,12 +80,13 @@ jobs:
sudo apt-get remove mysql-server --purge
sudo apt-get install apparmor-profiles
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
cache-version: 2
bundler: '2.1.0'
- name: Run tests
run: bundle exec rake beaker
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
cache-version: 2
bundler: '2.1.0'
- name: Build and Deploy
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
.project
.envrc
/inventory.yaml
/spec/fixtures/litmus_inventory.yaml
3 changes: 3 additions & 0 deletions .pdkignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
.project
.envrc
/inventory.yaml
/spec/fixtures/litmus_inventory.yaml
/appveyor.yml
/.fixtures.yml
/Gemfile
Expand All @@ -40,3 +41,5 @@
/.yardopts
/spec/
/.vscode/
/.sync.yml
/.devcontainer/
3 changes: 3 additions & 0 deletions .puppet-lint.rc
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
--no-80chars-check
--no-140chars-check
--no-manifest_whitespace_opening_brace_after-check
--relative
--fail_on_warnings
Loading

0 comments on commit bba319e

Please sign in to comment.