Guest User

Untitled

a guest
Nov 8th, 2011
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  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
  20.  
Advertisement
Add Comment
Please, Sign In to add comment