Puppet Class: profile::wmcs::nfs::backup_keys

Defined in:
modules/profile/manifests/wmcs/nfs/backup_keys.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/profile/manifests/wmcs/nfs/backup_keys.pp', line 1

class profile::wmcs::nfs::backup_keys {

    # Allow cloudstores to scp from each other for backups
    ssh::userkey { 'root-cloudstore':
        ensure => present,
        user   => 'root',
        skey   => 'cloudstore',
        source => 'puppet:///modules/profile/wmcs/nfs/id_cloudstore.pub',
    }

    file { '/root/.ssh/id_cloudstore':
        ensure    => present,
        owner     => 'root',
        group     => 'root',
        mode      => '0400',
        content   => secret('cloudstore/id_cloudstore'),
        show_diff => false,
    }
}