Move debug to store/collect health checker
[mirror/dsa-puppet.git] / modules / mirror_health / manifests / init.pp
1 # base class for Debian's mirror-health checker
2 class mirror_health () {
3   ensure_packages(['python3-requests'], { ensure => 'installed' })
4
5   $script = '/usr/local/sbin/mirror-health'
6   $confdir = '/etc/dsa/health-check'
7
8   file { $script:
9     source => 'puppet:///modules/mirror_health/mirror-health',
10     mode   => '0555',
11   }
12
13   file { $confdir:
14     ensure  => 'directory',
15     purge   => true,
16     force   => true,
17     recurse => true,
18     mode    => '0755';
19   }
20 }