Skip to content

Commit

Permalink
Implement database removal
Browse files Browse the repository at this point in the history
A slightly modified version of change done in vjanelle's fork
  • Loading branch information
vjt authored and akumria committed Dec 27, 2012
1 parent 78e0f31 commit 10057a9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions manifests/db.pp
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
define postgresql::db (
$password,
$owner = $name,
$ensure = present,
$owner = $name,
$encoding = 'UTF8',
$locale = 'en_US.UTF-8',
$locale = 'en_US.UTF-8',
$template = 'template0',
) {
require postgresql::server

pg_user {$owner:
ensure => present,
ensure => $ensure,
password => $password,
}

pg_database {$name:
ensure => present,
ensure => $ensure,
owner => $owner,
require => Pg_user[$owner],
encoding => $encoding,
Expand Down

0 comments on commit 10057a9

Please sign in to comment.