Puppet Class: profile::mirrors
- Defined in:
- modules/profile/manifests/mirrors.pp
Overview
SPDX-License-Identifier: Apache-2.0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'modules/profile/manifests/mirrors.pp', line 2
class profile::mirrors {
include profile::mirrors::serve
include profile::mirrors::debian
include profile::mirrors::openstack
include profile::mirrors::tails
include profile::mirrors::ubuntu
$homedir = '/var/lib/mirror'
user { 'mirror':
ensure => present,
gid => 'mirror',
home => $homedir,
shell => '/bin/bash',
managehome => true,
system => true,
}
group { 'mirror':
ensure => present,
name => 'mirror',
system => true,
}
file { '/srv/mirrors':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0444',
}
# monitoring for Debian/Ubuntu mirrors being in sync with upstream
nrpe::plugin { 'check_apt_mirror':
source => 'puppet:///modules/profile/mirrors/check_apt_mirror';
}
}
|