diff options
author | Michael Scherer <misc@mageia.org> | 2011-03-08 11:54:32 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-03-08 11:54:32 +0000 |
commit | a6b98521d6ebb4db7a90a252b827afd949e5a8b9 (patch) | |
tree | b5113b9c7f2ad5964cfd6d7047e0d411fadb6b3b | |
parent | 8d018927b5268513d15479cb97a83103d2566882 (diff) | |
download | puppet-a6b98521d6ebb4db7a90a252b827afd949e5a8b9.tar puppet-a6b98521d6ebb4db7a90a252b827afd949e5a8b9.tar.gz puppet-a6b98521d6ebb4db7a90a252b827afd949e5a8b9.tar.bz2 puppet-a6b98521d6ebb4db7a90a252b827afd949e5a8b9.tar.xz puppet-a6b98521d6ebb4db7a90a252b827afd949e5a8b9.zip |
add the start of a tagging system for exported db ( so we can have more than one db server )
-rw-r--r-- | modules/postgresql/manifests/init.pp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp index a01c1093..1afb25f5 100644 --- a/modules/postgresql/manifests/init.pp +++ b/modules/postgresql/manifests/init.pp @@ -79,11 +79,13 @@ class postgresql { content => template("postgresql/pg_ident.conf"), require => Package["postgresql-server"], } + } + define tagged() { # TODO add a system of tag so we can declare database on more than one # server - Postgresql::User <<| |>> - Postgresql::Database <<| |>> + Postgresql::User <<| tag == $name |>> + Postgresql::Database <<| tag == $name |>> } |