X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fmirror_health.pp;h=2a0413bb07bf55dfec5f2b1cada43fe7edbabd67;hb=155efbd68fa7f26852f430cbe6a50528c45c820e;hp=1290967696e948e2def4984942a36de8903d894e;hpb=d62d808fee28e92e4c00e1b3b3feecd2e78c4cd2;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/mirror_health.pp b/modules/roles/manifests/mirror_health.pp index 129096769..2a0413bb0 100644 --- a/modules/roles/manifests/mirror_health.pp +++ b/modules/roles/manifests/mirror_health.pp @@ -14,6 +14,7 @@ define roles::mirror_health ( owner => 'root', group => 'root', mode => '0555', + notify => Service["mirror-health-${check_service}"], } file { "/etc/systemd/system/mirror-health-${check_service}.service": @@ -21,7 +22,7 @@ define roles::mirror_health ( group => 'root', mode => '0444', content => template('roles/mirror-health.service.erb'), - notify => Exec['systemctl daemon-reload'], + notify => [Exec['systemctl daemon-reload'], Service["mirror-health-${check_service}"]], } file { "/etc/systemd/system/multi-user.target.wants/mirror-health-${check_service}.service": @@ -29,4 +30,8 @@ define roles::mirror_health ( target => "../mirror-health-${check_service}.service", notify => Exec['systemctl daemon-reload'], } + + service { "mirror-health-${check_service}": + ensure => running, + } }