aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openssh/manifests/pubkeys_directory.pp
blob: cbcaeb8836cfdbe912fcaf8efc84a45bbbecfc19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class openssh::pubkeys_directory {
    $pubkeys_directory = '/var/lib/pubkeys'
    file { $pubkeys_directory:
        ensure => directory,
    }

    file { "$pubkeys_directory/root":
        ensure => directory,
        mode   => '0700',
    }

    file { "$pubkeys_directory/root/authorized_keys":
        ensure => link,
        target => '/root/.ssh/authorized_keys',
        mode   => '0700',
    }
}