Guest User

Untitled

a guest
Jul 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. define ssh_user ($ssh_key){
  2.  
  3. user { $name: ensure=>present ...... }
  4. ssh_authorized_key{$name: key=>$ssh_key, ensure=>present, user=>$name, require=>User[$name]}
  5.  
  6. }
  7.  
  8. @ssh_user{"barnaclebob": ssh_key=>"asdfasdfasdfasdf"}
  9. @ssh_user{"greenman": ssh_key=>"foobarbaz"}
  10.  
  11.  
  12. realize Ssh_user["greenman"]
Add Comment
Please, Sign In to add comment