aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/defaults.pp
blob: 444c84a3b7072aa6a4b343619da69996e0fd39f6 (plain)
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
35
36
37
38
# to not repeat the settings everywhere
Exec {
    path => '/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin/',
}

Package {
    ensure => present,
}

File {
    ensure => present,
    owner  => 'root',
    group  => 'root',
    # on directory, this will be 755
    # see http://docs.puppetlabs.com/references/2.7.0/type.html#file
    mode   => '0644',
}

Group {
    ensure => present,
}

User {
    ensure     => present,
    managehome => true,
    shell      => '/bin/bash',
}

Service {
    ensure => running,
}

# (tmb) temp range check to fix puppet chocking
if (versioncmp($::lsbdistrelease, '2') >= 0) and (versioncmp($::lsbdistrelease, '6') <= 0)  {
    Service {
        provider => systemd,
    }
}