aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql/manifests/remote_database.pp
blob: 57d35a9b4b6e6fd1229b740d9459eb271ee904fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class 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 |>>
}