aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-17 16:53:44 +0000
committerMichael Scherer <misc@mageia.org>2012-03-17 16:53:44 +0000
commitf62c146259543bba72c54ce983d2a846ae8ba755 (patch)
treef72e5b62208397ab2d76ede806425ff86e234cb0 /modules/postgresql
parent5dc9c3aa06840d9280d8a41ad57bedf7572d62e1 (diff)
downloadpuppet-f62c146259543bba72c54ce983d2a846ae8ba755.tar
puppet-f62c146259543bba72c54ce983d2a846ae8ba755.tar.gz
puppet-f62c146259543bba72c54ce983d2a846ae8ba755.tar.bz2
puppet-f62c146259543bba72c54ce983d2a846ae8ba755.tar.xz
puppet-f62c146259543bba72c54ce983d2a846ae8ba755.zip
split tagged from main file
Diffstat (limited to 'modules/postgresql')
-rw-r--r--modules/postgresql/manifests/init.pp8
-rw-r--r--modules/postgresql/manifests/tagged.pp7
2 files changed, 7 insertions, 8 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
index dcce8946..1774b510 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -60,14 +60,6 @@ class postgresql {
}
- define tagged() {
- # TODO add a system of tag so we can declare database on more than one
- # server
- Postgresql::User <<| tag == $name |>>
- Postgresql::Database <<| tag == $name |>>
- Postgresql::Db_and_user <<| tag == $name |>>
- }
-
define remote_db_and_user($description = "",
$tag = "default",
diff --git a/modules/postgresql/manifests/tagged.pp b/modules/postgresql/manifests/tagged.pp
new file mode 100644
index 00000000..56cdc033
--- /dev/null
+++ b/modules/postgresql/manifests/tagged.pp
@@ -0,0 +1,7 @@
+define postgresql::tagged() {
+ # TODO add a system of tag so we can declare database on more than one
+ # server
+ Postgresql::User <<| tag == $name |>>
+ Postgresql::Database <<| tag == $name |>>
+ Postgresql::Db_and_user <<| tag == $name |>>
+}