Puppet Class: alerts

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

Overview



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'modules/alerts/manifests/init.pp', line 14

class alerts {
    group { 'alerts-deploy':
        ensure => present,
        system => true,
    }

    user { 'alerts-deploy':
        gid        => 'alerts-deploy',
        shell      => '/bin/bash',
        system     => true,
        managehome => true,
        home       => '/var/lib/alerts-deploy',
        require    => Group['alerts-deploy'],
    }

    file { '/usr/local/bin/alerts-deploy':
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/alerts/deploy.py',
    }

    # The target to be started after puppet has updated git
    systemd::unit { 'alerts-deploy.target':
        content => "[Unit]\nDescription=alerts-deploy\n",
    }
}