Puppet Class: mirrors

Defined in:
modules/mirrors/manifests/init.pp

Overview



1
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
# File 'modules/mirrors/manifests/init.pp', line 1

class mirrors {
    $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
    file { '/usr/local/lib/nagios/plugins/check_apt_mirror':
        ensure => 'present',
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/mirrors/check_apt_mirror';
    }
}