(root@sw17152) .ssh > ls -la
total 24
drwxr-xr-x 2 root root 4096 May 25 07:07 ./
drwxr-xr-x 7 root root 4096 May 25 07:10 ../
-rw------- 1 root root 5280 May 24 20:54 authorized_keys2_bak
(root@sw17152) .ssh > cat ../test.pp
class 248_root_sshkey {
#- ensure link for authorized_keys and authorized_keys2 exists
#file { "/root/.ssh/authorized_keys": ensure => "/root/.ssh/authorized_keys2" }
ssh_authorized_key { "bbartlett@zynga.com":
key => "BLAHBLAH",
name => "bbartlett@zynga.com",
user => "root",
type => ssh-dss,
target => authorized_keys2,
ensure => present,
}
}
(root@sw17152) .ssh > puppet --trace --noop --debug ../test.pp
debug: Creating default schedules
debug: Finishing transaction 23940485940020 with 0 changes
(root@sw17152) .ssh > ls -la
total 24
drwxr-xr-x 2 root root 4096 May 25 07:07 ./
drwxr-xr-x 7 root root 4096 May 25 07:10 ../
-rw------- 1 root root 5280 May 24 20:54 authorized_keys2_bak