diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/postgresql/manifests/init.pp | 15 |
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") |