You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
412 B
21 lines
412 B
10 years ago
|
define postgresql::db (
|
||
|
$password,
|
||
|
$owner = $name,
|
||
|
$encoding = 'UTF8',
|
||
|
$locale = 'en_US.UTF-8',
|
||
|
) {
|
||
|
|
||
|
pg_user {$owner:
|
||
|
ensure => present,
|
||
|
password => $password,
|
||
|
}
|
||
|
|
||
|
pg_database {$name:
|
||
|
ensure => present,
|
||
|
owner => $owner,
|
||
|
require => Pg_user[$owner],
|
||
|
encoding => $encoding,
|
||
|
locale => $locale,
|
||
|
}
|
||
|
}
|