aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql/manifests/remote_database.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/postgresql/manifests/remote_database.pp')
-rw-r--r--modules/postgresql/manifests/remote_database.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/postgresql/manifests/remote_database.pp b/modules/postgresql/manifests/remote_database.pp
new file mode 100644
index 00000000..15b54651
--- /dev/null
+++ b/modules/postgresql/manifests/remote_database.pp
@@ -0,0 +1,15 @@
+# FIXME: In puppet >3.0 word 'tag' is reserved, so it has to be renamed
+define postgresql::remote_database($description = '',
+ $user = 'postgresql',
+ $callback_notify = '',
+ $tag = 'default') {
+ @@postgresql::database { $name:
+ description => $description,
+ user => $user,
+ callback_notify => $callback_notify,
+ tag => $tag,
+ require => Postgresql::User[$user],
+ }
+
+ Postgresql::Database_callback <<| tag == $name |>>
+}