Update wuiet IP address
[mirror/dsa-puppet.git] / modules / postgres / manifests / backup_source.pp
index 04a324d..146726a 100644 (file)
@@ -14,12 +14,7 @@ class postgres::backup_source {
                content => template('roles/postgresql_server/pg-backup-file.conf.erb'),
        }
 
-       if ! $::postgresql_key {
-               exec { 'create-postgresql-key':
-                       command => '/bin/su - postgres -c \'mkdir -p -m 02700 .ssh && ssh-keygen -C "`whoami`@`hostname` (`date +%Y-%m-%d`)" -P "" -f .ssh/id_rsa -q\'',
-                       onlyif  => '/usr/bin/getent passwd postgres > /dev/null && ! [ -e /var/lib/postgresql/.ssh/id_rsa ]'
-               }
-       }
+       ssh::keygen {'postgres': }
 
 
        if $::hostname in [melartin, vittoria] {