From a063f9b393a7f664766e1e70b63b8a3cad3be9db Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 8 Sep 2019 08:47:06 +0200 Subject: [PATCH] Of course just restoring the default symlink is not sufficient -- we also have to retire our own --- modules/systemdtimesyncd/manifests/init.pp | 8 ++++++++ 1 file changed, 8 insertions(+) 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'], + } + } } -- 2.20.1