aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-03-22 17:27:10 +0000
committerMichael Scherer <misc@mageia.org>2011-03-22 17:27:10 +0000
commit87385d8f2d744d1896be2a4d23321a67473c1fe8 (patch)
tree36b5c09434e50517cd446ad0c1ef8970f3e53a31 /modules/postgresql
parent7db79b19447c2954280fcdf36e3bc0e3561c9c39 (diff)
downloadpuppet-87385d8f2d744d1896be2a4d23321a67473c1fe8.tar
puppet-87385d8f2d744d1896be2a4d23321a67473c1fe8.tar.gz
puppet-87385d8f2d744d1896be2a4d23321a67473c1fe8.tar.bz2
puppet-87385d8f2d744d1896be2a4d23321a67473c1fe8.tar.xz
puppet-87385d8f2d744d1896be2a4d23321a67473c1fe8.zip
add a type for database and user, this will simplify some declaration
Diffstat (limited to 'modules/postgresql')
-rw-r--r--modules/postgresql/manifests/init.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
index 5ba79811..4894c348 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -90,6 +90,21 @@ class postgresql {
}
+ define remote_db_and_user($description = "",
+ $tag = "default",
+ $password ) {
+
+ remote_database { $name:
+ description => $description,
+ user => $name,
+ tag => $tag,
+ }
+
+ remote_user { $name:
+ password => $password
+ }
+ }
+
define remote_database($description = "",
$user = "postgresql",
$tag = "default")