aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql/manifests/remote_database.pp
blob: a9fb1a59e4b452c1ab896698ff3d7a4be938c293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# FIXME: In puppet >3.0 word 'tag' is reserved, so it have to berenamed
define postgresql::remote_database($description = '',
                                   $user = 'postgresql',
                                   $callback_notify = '',
                                   $tag = 'default') {
    @@postgresql::database { $name:
        description     => $description,
        user            => $user,
        callback_notify => $callback_notify,
        tag             => $tag,
        require         => Postgresql::User[$user],
    }

    Postgresql::Database_callback <<| tag == $name |>>
}