Skip to content

Commit f418701

Browse files
committed
ntp::user needs this code also on Ubuntu 20.04 and 22.04
1 parent 0dd5010 commit f418701

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

manifests/config.pp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
}
3535
'Debian': {
3636
if $facts['os']['name'] == 'Ubuntu' {
37-
if $ntp::user and $facts['os']['release']['major'] == '18.04' {
37+
if (versioncmp($facts['os']['release']['major'], '18.04') >= 0 and
38+
versioncmp($facts['os']['release']['major'], '24.04') < 0 and
39+
$ntp::user) {
3840
file_line { 'Set NTPD daemon user':
3941
ensure => present,
4042
path => '/usr/lib/ntp/ntp-systemd-wrapper',

0 commit comments

Comments
 (0)