aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql/manifests/database.pp
blob: 82670b5ef29975dfaa9043cebb489431eaa18784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# TODO convert it to a regular type ( so we can later change user and so on )
define postgresql::database($description = '',
                            $user = 'postgres',
                            $callback_notify = '') {

    exec { "createdb -O $user -U postgres $name '$description'":
        user    => 'root',
        unless  => "psql -A -t -U postgres -l | grep '^$name|'",
        require => Service['postgresql'],
    }

    # this is fetched by the manifest asking the database creation,
    # once the db have been created
    # FIXME proper ordering ?
    @@postgresql::database_callback { $name:
        tag             => $name,
        callback_notify => $callback_notify,
    }
}
ption value='30'>30space:mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-09-05 14:33:34 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-09-05 14:33:34 +0000
commitf0eba89d8d6862087755141ac37bbb3bf9d3a714 (patch)
treee1c73dc7123317a83491b8a541e919e04d839d12 /kernel/list_modules.pm
parent6b3068afe4f39c70f0c950688bb94cfda6b3d4e1 (diff)
downloaddrakx-f0eba89d8d6862087755141ac37bbb3bf9d3a714.tar
drakx-f0eba89d8d6862087755141ac37bbb3bf9d3a714.tar.gz
drakx-f0eba89d8d6862087755141ac37bbb3bf9d3a714.tar.bz2
drakx-f0eba89d8d6862087755141ac37bbb3bf9d3a714.tar.xz
drakx-f0eba89d8d6862087755141ac37bbb3bf9d3a714.zip
fake support the firewire in stage1 (as if it were usb ;p)