Skip to content
Snippets Groups Projects
Commit 2b6f9206 authored by Filip Polbratt's avatar Filip Polbratt Committed by Thomas Bellman
Browse files

Add support for EL8 systems.


The packaging of fetch-crl in EPEL-8 uses a systemd timer unit,
instead of a cron job, to run fetch-crl regularly.  Thus, in EL-8
we need to manage the 'fetch-crl.timer' service instead of the old
'fetch-crl-cron' and 'fetch-crl-boot' services.

Signed-off-by: default avatarThomas Bellman <bellman@nsc.liu.se>
parent 710e797f
Branches fetchcrl-on-el8
No related tags found
1 merge request!1Add support for el8 systems.
...@@ -20,7 +20,7 @@ class x509certs::fetchcrl ...@@ -20,7 +20,7 @@ class x509certs::fetchcrl
notify => Exec['x509certs::fetchcrl::initial']; notify => Exec['x509certs::fetchcrl::initial'];
} }
} }
/^(CentOS|RedHat|Scientific):(7)(\.[^:]+)?$/: { /^(CentOS|RedHat|Scientific):([7-8])(\.[^:]+)?$/: {
package { package {
'perl-LWP-Protocol-https': 'perl-LWP-Protocol-https':
ensure => installed, before => Package['fetch-crl'], ensure => installed, before => Package['fetch-crl'],
...@@ -40,14 +40,32 @@ class x509certs::fetchcrl ...@@ -40,14 +40,32 @@ class x509certs::fetchcrl
# Obsolete; now just an empty package depending on fetch-crl. # Obsolete; now just an empty package depending on fetch-crl.
ensure => absent; ensure => absent;
} }
service {
'fetch-crl-cron': # Activate services as required per operatingsystem
enable => true, ensure => running, case "${::operatingsystem}:${::operatingsystemrelease}"
require => Package['fetch-crl']; {
'fetch-crl-boot': /^(CentOS|RedHat|Scientific):([6-7])(\.[^:]+)?$/: {
enable => false, service {
require => Package['fetch-crl']; 'fetch-crl-cron':
enable => true, ensure => running,
require => Package['fetch-crl'];
'fetch-crl-boot':
enable => false,
require => Package['fetch-crl'];
}
}
/^(CentOS|RedHat|Scientific):(8)(\.[^:]+)?$/: {
service {
'fetch-crl.timer':
enable => true, ensure => running,
require => Package['fetch-crl'];
}
}
default: {
fail("X509certs::Fetchcrl: Unsupported operating system")
}
} }
exec { exec {
'x509certs::fetchcrl::initial': 'x509certs::fetchcrl::initial':
command => '/usr/sbin/fetch-crl -p 16', command => '/usr/sbin/fetch-crl -p 16',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment