1 define roles::mirror_health (
7 package { 'python3-requests':
11 # XXX: avoid duplicating this?
12 file { '/usr/local/sbin/mirror-health':
13 source => 'puppet:///modules/roles/mirror_health/mirror-health',
17 notify => Service["mirror-health-${check_service}"],
20 file { "/etc/systemd/system/mirror-health-${check_service}.service":
24 content => template('roles/mirror-health.service.erb'),
25 notify => [Exec['systemctl daemon-reload'], Service["mirror-health-${check_service}"]],
28 file { "/etc/systemd/system/multi-user.target.wants/mirror-health-${check_service}.service":
30 target => "../mirror-health-${check_service}.service",
31 notify => Exec['systemctl daemon-reload'],
34 service { "mirror-health-${check_service}":