X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fmirror_health.pp;h=d4d0d625e00c66df315b59ce3209add640f262c9;hb=64c1545f242396ff122e1af0ce35cf952a01c58c;hp=ec1102d5d5ab28b550c49f0c8453dfe0bdeca5fb;hpb=fe910feb549fda02fe25bc7c90d185d14c589ffd;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/mirror_health.pp b/modules/roles/manifests/mirror_health.pp index ec1102d5d..d4d0d625e 100644 --- a/modules/roles/manifests/mirror_health.pp +++ b/modules/roles/manifests/mirror_health.pp @@ -5,18 +5,17 @@ define roles::mirror_health ( $health_url = '', $check_interval = 60, ) { - package { 'python3-requests': - ensure => installed, - } + ensure_packages(['python3-requests'], { ensure => 'installed' }) - # XXX: avoid duplicating this? - file { '/usr/local/sbin/mirror-health': - source => 'puppet:///modules/roles/mirror_health/mirror-health', - owner => 'root', - group => 'root', - mode => '0555', - notify => Service["mirror-health-${check_service}"], - } +# if !defined(File['/usr/local/sbin/mirror-health']) { +# file { '/usr/local/sbin/mirror-health': +# source => 'puppet:///modules/roles/mirror_health/mirror-health', +# owner => 'root', +# group => 'root', +# mode => '0555', +# notify => Service["mirror-health-${check_service}"], +# } +# } file { "/etc/systemd/system/mirror-health-${check_service}.service": owner => 'root',