diff options
Diffstat (limited to 'modules/postgresql/manifests/remote_database.pp')
-rw-r--r-- | modules/postgresql/manifests/remote_database.pp | 14 |
1 files changed, 14 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..57d35a9b --- /dev/null +++ b/modules/postgresql/manifests/remote_database.pp @@ -0,0 +1,14 @@ +class 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 |>> +} |