From f62c146259543bba72c54ce983d2a846ae8ba755 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 17 Mar 2012 16:53:44 +0000 Subject: split tagged from main file --- modules/postgresql/manifests/init.pp | 8 -------- modules/postgresql/manifests/tagged.pp | 7 +++++++ 2 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 modules/postgresql/manifests/tagged.pp (limited to 'modules/postgresql') 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 |>> +} -- cgit v1.2.1