Skip to content

systemd daemon-reload is triggered too late in the run by default

While the "~>" operator properly triggers a refresh for the runsvdir-start service, it doesn't help, because systemd daemon-reload only happens latter towards the very end of the run. (This is apparently fixed in puppet 6 or 6.1) For the moment I added

https://gitlab.cern.ch/ai/it-puppet-hostgroup-voilcdirac/-/blob/qa/code/manifests/dirac/deploydirac.pp#L27

  Exec { 'restart-runsv':
    command     => 'systemctl daemon-reload; systemctl restart runsvdir-start',
    path        => '/bin',
    user        => 'root',
    group       => 'root',
    refreshonly => true,
  }

To the voilcdirac manifests including some "requires" and "notifies" to trigger this before attempting to install dirac components.

Should we put this into the dirac module directly?