Skip to content

Commit 55b689f

Browse files
authored
Add RockyLinux 8 support (#24)
1 parent b628f87 commit 55b689f

File tree

10 files changed

+31
-14
lines changed

10 files changed

+31
-14
lines changed

.github/workflows/pr_tests.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,16 @@ jobs:
109109
strategy:
110110
matrix:
111111
puppet:
112-
- label: 'Puppet 7.x'
113-
puppet_version: '~> 7.21.0'
112+
- label: 'Puppet 7.x [SIMP 6.6/PE 2021.7]'
113+
puppet_version: '~> 7.0'
114114
ruby_version: '2.7'
115+
experimental: false
115116
- label: 'Puppet 8.x'
116117
puppet_version: '~> 8.0'
117-
ruby_version: '3.2'
118+
ruby_version: 3.1
119+
experimental: true
118120
env:
119-
PUPPET_VERSION: '${{matrix.puppet.puppet_version}}'
121+
PUPPET_VERSION: ${{matrix.puppet.puppet_version}}
120122
steps:
121123
- uses: actions/checkout@v3
122124
- name: 'Install Ruby ${{matrix.puppet.ruby_version}}'
@@ -126,6 +128,7 @@ jobs:
126128
bundler-cache: true
127129
- run: 'command -v rpm || if command -v apt-get; then sudo apt-get update; sudo apt-get install -y rpm; fi ||:'
128130
- run: 'bundle exec rake spec'
131+
continue-on-error: ${{matrix.puppet.experimental}}
129132

130133
# dump_contexts:
131134
# name: 'Examine Context contents'

.puppet-lint.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
--no-class_inherits_from_params_class-check
1010
--no-140chars-check
1111
--no-trailing_comma-check
12-
--no-empty_string_assignment-check
12+
--no-params-empty-string-assignment-check
1313
# This is here because the code can't handle lookups in parameters and SIMP
1414
# modules have a LOT of those
1515
--no-parameter_order-check

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
* Mon Jun 12 2023 Chris Tessmer <chris.tessmer@onyxpoint.com> - 0.3.0
2+
- Add RockyLinux 8 support
3+
14
* Fri Jun 03 2022 Chris Tessmer <chris.tessmer@onyxpoint.com> - 0.2.0
25
- Update from camptocamp/systemd to puppet/systemd
36

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ group :test do
2121
gem 'puppetlabs_spec_helper'
2222
gem 'metadata-json-lint'
2323
gem 'puppet-strings'
24-
gem 'puppet-lint-empty_string-check', :require => false
2524
gem 'puppet-lint-trailing_comma-check', :require => false
2625
gem 'simp-rspec-puppet-facts', ENV['SIMP_RSPEC_PUPPET_FACTS_VERSION'] || '~> 3.1'
2726
gem 'simp-rake-helpers', ENV['SIMP_RAKE_HELPERS_VERSION'] || ['>= 5.12.1', '< 6']

data/os/Rocky-8.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
ds389::install::package_list:
3+
- 389-ds-base
4+
ds389::install::dnf_module: 389-directory-server
5+
ds389::install::dnf_stream: stable
6+
ds389::install::dnf_profile: minimal

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
recurse => true
4141
}
4242

43-
file { "$config_dir/ca_import.sh":
43+
file { "${config_dir}/ca_import.sh":
4444
ensure => 'file',
4545
owner => 'root',
4646
group => 'root',

manifests/instance.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
Simplib::Port $port = 389,
7676
Simplib::Port $secure_port = 636,
7777
Optional[Pattern['^[\S]+$']] $root_dn_password = undef,
78-
String[1] $machine_name = $facts['fqdn'],
78+
String[1] $machine_name = $facts['networking']['fqdn'],
7979
String[1] $service_user = 'dirsrv',
8080
String[1] $service_group = 'dirsrv',
8181
Optional[String[1]] $bootstrap_ldif_content = undef,

manifests/instance/selinux/port.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
$_port = Integer($title)
1313

14-
if ($_port != $default) and $facts['selinux_enforced'] {
14+
if ($_port != $default) and $facts['os']['selinux']['enforced'] {
1515
if simplib::module_exist('simp/selinux') {
1616
simplib::assert_optional_dependency($module_name, 'simp/selinux')
1717
simplib::assert_optional_dependency($module_name, 'simp/vox_selinux')

manifests/instance/tls.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
Variant[Boolean, Enum['disabled','simp']] $ensure = simplib::lookup('simp_options::pki', { 'default_value' => false}),
5757
Simplib::Port $port = 636,
5858
Optional[String[1]] $source = simplib::lookup('simp_options::pki::source', { 'default_value' => '/etc/pki/simp/x509' }),
59-
Stdlib::Absolutepath $cert = "/etc/pki/simp_apps/${module_name}_${title}/x509/public/${facts['fqdn']}.pub",
60-
Stdlib::Absolutepath $key = "/etc/pki/simp_apps/${module_name}_${title}/x509/private/${facts['fqdn']}.pem",
59+
Stdlib::Absolutepath $cert = "/etc/pki/simp_apps/${module_name}_${title}/x509/public/${facts['networking']['fqdn']}.pub",
60+
Stdlib::Absolutepath $key = "/etc/pki/simp_apps/${module_name}_${title}/x509/private/${facts['networking']['fqdn']}.pem",
6161
Stdlib::Absolutepath $cafile = "/etc/pki/simp_apps/${module_name}_${title}/x509/cacerts/cacerts.pem",
6262
Ds389::ConfigItems $dse_config = simplib::dlookup('ds389::instance::tls', 'dse_config', { 'default_value' => {} }),
6363
String[16] $token = simplib::passgen("ds389_${title}_pki", { 'length' => 32, 'complexity' => 1 }),

metadata.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simp-ds389",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"author": "SIMP Team",
55
"summary": "Management of 389 Directory Server",
66
"license": "Apache-2.0",
@@ -10,15 +10,15 @@
1010
"dependencies": [
1111
{
1212
"name": "puppet/systemd",
13-
"version_requirement": ">= 3.0.0 < 4.0.0"
13+
"version_requirement": ">= 4.0.2 < 6.0.0"
1414
},
1515
{
1616
"name": "simp/simplib",
1717
"version_requirement": ">= 4.4.1 < 5.0.0"
1818
},
1919
{
2020
"name": "puppetlabs/stdlib",
21-
"version_requirement": ">= 6.6.0 < 8.0.0"
21+
"version_requirement": ">= 8.0.0 < 9.0.0"
2222
}
2323
],
2424
"simp": {
@@ -59,6 +59,12 @@
5959
"operatingsystemrelease": [
6060
"8"
6161
]
62+
},
63+
{
64+
"operatingsystem": "Rocky",
65+
"operatingsystemrelease": [
66+
"8"
67+
]
6268
}
6369
],
6470
"requirements": [

0 commit comments

Comments
 (0)