benvin/grafana_postgres (#334)
Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/334
This commit was merged in pull request #334.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
define profiles::sql::postgres::db (
|
||||
String $dbname,
|
||||
String $owner,
|
||||
) {
|
||||
postgresql_psql { "create_database_${dbname}":
|
||||
command => "CREATE DATABASE \"${dbname}\"",
|
||||
command => "CREATE DATABASE \"${dbname}\" OWNER \"${owner}\"",
|
||||
unless => "SELECT 1 FROM pg_database WHERE datname = '${dbname}'",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user