Puppet Class: dbtree

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

Overview



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

class dbtree {

    # dbtree requires apache which is provided by profile::tendril::webserver

    # dbtree config
    include passwords::tendril
    $tendril_user_web = $passwords::tendril::db_user_web
    $tendril_pass_web = $passwords::tendril::db_pass_web


    file { ['/srv/dbtree']:
        ensure  => 'directory',
        owner   => 'mwdeploy',
        group   => 'www-data',
        mode    => '0755',
        require => User['mwdeploy'],
    }

    git::clone { 'operations/software/dbtree':
    # we do not update (pull) automatically the repo
    # not adding ensure => 'latest' is on purpose
        directory => '/srv/dbtree',
        branch    => 'master',
        owner     => 'mwdeploy',
        group     => 'mwdeploy',
        require   => File['/srv/dbtree'],
    }

    file { '/srv/dbtree/inc/config.php':
        ensure  => 'present',
        owner   => 'mwdeploy',
        group   => 'mwdeploy',
        content => template('dbtree/dbtree.config.php.erb'),
        require => Git::Clone['operations/software/dbtree']
    }
}