Puppet Class: gdnsd

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

class gdnsd {
    # The package would create this as well if missing, but this allows
    # puppetization to create directories and files owned by these before the
    # package is even installed...
    group { 'gdnsd':
        ensure => present,
        system => true,
    }
    user { 'gdnsd':
        ensure     => present,
        gid        => 'gdnsd',
        shell      => '/bin/false',
        comment    => '',
        home       => '/var/run/gdnsd',
        managehome => false,
        system     => true,
        require    => Group['gdnsd'],
    }

    package { 'gdnsd':
        ensure => installed,
    }

    # Ensure that 'restarts' are converted to seamless reloads; it never needs
    # a true restart under any remotely normal conditions.
    service { 'gdnsd':
        ensure     => 'running',
        hasrestart => true,
        hasstatus  => true,
        restart    => 'service gdnsd reload',
        require    => Package['gdnsd'],
    }
}