Guest User

Untitled

a guest
Jun 19th, 2018
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. (root@sw17152) .ssh > ls -la
  2. total 24
  3. drwxr-xr-x 2 root root 4096 May 25 07:07 ./
  4. drwxr-xr-x 7 root root 4096 May 25 07:10 ../
  5. -rw------- 1 root root 5280 May 24 20:54 authorized_keys2_bak
  6.  
  7. (root@sw17152) .ssh > cat ../test.pp
  8. class 248_root_sshkey {
  9. #- ensure link for authorized_keys and authorized_keys2 exists
  10. #file { "/root/.ssh/authorized_keys": ensure => "/root/.ssh/authorized_keys2" }
  11.  
  12. ssh_authorized_key { "bbartlett@zynga.com":
  13. key => "BLAHBLAH",
  14. name => "bbartlett@zynga.com",
  15. user => "root",
  16. type => ssh-dss,
  17. target => authorized_keys2,
  18. ensure => present,
  19. }
  20. }
  21.  
  22. (root@sw17152) .ssh > puppet --trace --noop --debug ../test.pp
  23. debug: Creating default schedules
  24. debug: Finishing transaction 23940485940020 with 0 changes
  25.  
  26. (root@sw17152) .ssh > ls -la
  27. total 24
  28. drwxr-xr-x 2 root root 4096 May 25 07:07 ./
  29. drwxr-xr-x 7 root root 4096 May 25 07:10 ../
  30. -rw------- 1 root root 5280 May 24 20:54 authorized_keys2_bak
Add Comment
Please, Sign In to add comment