Start with puppetizing postgres cluster backup configuration. for now, only deal...
[mirror/dsa-puppet.git] / modules / postgres / manifests / backup_source.pp
index 81d4a8e..be48b37 100644 (file)
@@ -1,3 +1,4 @@
+#
 class postgres::backup_source {
        file { "/usr/local/bin/pg-backup-file":
                mode    => '0555',
@@ -17,4 +18,14 @@ class postgres::backup_source {
                        onlyif  => '/usr/bin/getent passwd postgres > /dev/null && ! [ -e /var/lib/postgresql/.ssh/id_rsa ]'
                }
        }
+
+
+       if $::hostname in [melartin] {
+               postgres::backup_cluster { $::hostname:
+                       pg_version => '9.6',
+               }
+
+               postgres::backup_server::register_backup_clienthost { "backup-clienthost-${::fqdn}}":
+               }
+       }
 }