Puppet Class: planet::dirs

Defined in:
modules/planet/manifests/dirs.pp

Overview

sets up needed directories for a planet (rawdog) install



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
# File 'modules/planet/manifests/dirs.pp', line 2

class planet::dirs {

    file { [
        '/var/www/planet',
        '/var/log/planet',
        '/etc/rawdog/',
        '/etc/rawdog/theme',
        '/etc/rawdog/theme/wikimedia',
        ]:
        ensure => 'directory',
        owner  => 'planet',
        group  => 'planet',
        mode   => '0755',
    }

    file { '/etc/rawdog/plugins':
        ensure => directory,
        owner  => 'planet',
        group  => 'planet',
        mode   => '0755',
    }

    file { '/etc/rawdog/config':
        ensure  => 'present',
        mode    => '0444',
        owner   => 'planet',
        group   => 'planet',
        content => template('planet/global.erb'),
    }
}