1 define roles::mirror_health (
8 ensure_packages(['python3-requests'], { ensure => 'installed' })
10 # XXX: avoid duplicating this?
11 file { '/usr/local/sbin/mirror-health':
12 source => 'puppet:///modules/roles/mirror_health/mirror-health',
16 notify => Service["mirror-health-${check_service}"],
19 file { "/etc/systemd/system/mirror-health-${check_service}.service":
23 content => template('roles/mirror-health.service.erb'),
24 notify => [Exec['systemctl daemon-reload'], Service["mirror-health-${check_service}"]],
27 file { "/etc/systemd/system/multi-user.target.wants/mirror-health-${check_service}.service":
29 target => "../mirror-health-${check_service}.service",
30 notify => Exec['systemctl daemon-reload'],
33 service { "mirror-health-${check_service}":
34 require => Exec['systemctl daemon-reload'],