X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsystemdtimesyncd%2Fmanifests%2Finit.pp;h=a0d5b1224557fe1c33678bc4a48fa7406d97fd65;hb=faf0b00a7b3ef90757b7fcf9dec93c9987383f8a;hp=6a9a298a567f62062d0bcf6a45b51f44c0a6b6e1;hpb=0faf9685026413c4b14bc2baa512b27f51b3d65d;p=mirror%2Fdsa-puppet.git diff --git a/modules/systemdtimesyncd/manifests/init.pp b/modules/systemdtimesyncd/manifests/init.pp index 6a9a298a5..a0d5b1224 100644 --- a/modules/systemdtimesyncd/manifests/init.pp +++ b/modules/systemdtimesyncd/manifests/init.pp @@ -20,5 +20,13 @@ class systemdtimesyncd { content => template('systemdtimesyncd/timesyncd.conf.erb'), notify => Service['systemd-timesyncd'], } + + # Up until 2019-09 we had timesyncd started by multi-user.target instead of the default + # sysinit.target.wants. We are moving back to sysinit.target.wants (for now). + file { '/etc/systemd/system/multi-user.target.wants/systemd-timesyncd.service': + ensure => 'absent', + notify => Exec['systemctl daemon-reload'], + } + } }