1 define roles::mirror_health (
8 package { 'python3-requests':
12 # XXX: avoid duplicating this?
13 file { '/usr/local/sbin/mirror-health':
14 source => 'puppet:///modules/roles/mirror_health/mirror-health',
18 notify => Service["mirror-health-${check_service}"],
21 file { "/etc/systemd/system/mirror-health-${check_service}.service":
25 content => template('roles/mirror-health.service.erb'),
26 notify => [Exec['systemctl daemon-reload'], Service["mirror-health-${check_service}"]],
29 file { "/etc/systemd/system/multi-user.target.wants/mirror-health-${check_service}.service":
31 target => "../mirror-health-${check_service}.service",
32 notify => Exec['systemctl daemon-reload'],
35 service { "mirror-health-${check_service}":
36 require => Exec['systemctl daemon-reload'],