aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql/manifests/init.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-17 16:53:41 +0000
committerMichael Scherer <misc@mageia.org>2012-03-17 16:53:41 +0000
commit5dc9c3aa06840d9280d8a41ad57bedf7572d62e1 (patch)
tree958512f6a40b8543a2cf3b8396f823451978482b /modules/postgresql/manifests/init.pp
parent1baad5e9431cb5587482fd631f33fa36c64e9712 (diff)
downloadpuppet-5dc9c3aa06840d9280d8a41ad57bedf7572d62e1.tar
puppet-5dc9c3aa06840d9280d8a41ad57bedf7572d62e1.tar.gz
puppet-5dc9c3aa06840d9280d8a41ad57bedf7572d62e1.tar.bz2
puppet-5dc9c3aa06840d9280d8a41ad57bedf7572d62e1.tar.xz
puppet-5dc9c3aa06840d9280d8a41ad57bedf7572d62e1.zip
split database from main postgresql file
Diffstat (limited to 'modules/postgresql/manifests/init.pp')
-rw-r--r--modules/postgresql/manifests/init.pp19
1 files changed, 1 insertions, 18 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
index e943052d..dcce8946 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -139,22 +139,5 @@ class postgresql {
}
}
- # TODO convert it to a regular type ( so we can later change user and so on )
- define database($description = "",
- $user = "postgres",
- $callback_notify = "") {
- exec { "createdb -O $user -U postgres $name '$description'":
- user => root,
- unless => "psql -A -t -U postgres -l | grep '^$name|'",
- require => Service['postgresql'],
- }
-
- # this is fetched by the manifest asking the database creation, once the db have been created
- # FIXME proper ordering ?
- @@postgresql::database_callback { $name:
- tag => $name,
- callback_notify => $callback_notify,
- }
- }
-
+
}