aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql/manifests/db_and_user.pp
blob: 2d59e1cad2758d47903b3efdaf91c47326540cbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
define postgresql::db_and_user( $password,
                                $description = '',
                                $callback_notify = '') {

    postgresql::database { $name:
        callback_notify => $callback_notify,
        description     => $description,
        user            => $name,
        require         => Postgresql::User[$name],
    }

    postgresql::user { $name:
        password => $password
    }
}