View difference between Paste ID: nfRGENMk and ujf64TWg
SHOW: | | - or go back to the newest paste.
1
 cat /etc/puppet/manifests/site.pp
2
node default {
3
    include ssh
4
}
5
6
-----------------------------------------------------------------------------------
7
8
cat /etc/puppet/modules/ssh/manifests/init.pp
9
class ssh {
10
   file { 'authorized_keys':
11
        path    => '/root/.ssh/authorized_keys',
12
        source  => "puppet:///modules/ssh/authorized_keys",
13
      }
14
}
15
16
-----------------------------------------------------------------------------------
17
18
ll /etc/puppet/modules/ssh/authorized_keys
19-
-rw-r--r-- 1 root root 3031 Nov  8 15:54 /etc/puppet/modules/ssh/authorized_keys
19+
-rw-r--r-- 1 root root 3031 Nov  8 15:54 /etc/puppet/modules/ssh/authorized_keys
20
21
22
----------------------------------------------------------------------------------
23
24
tree modules/
25
modules/
26
`-- ssh
27
    |-- authorized_keys
28
    `-- manifests
29
        `-- init.pp
30