Guest User

Untitled

a guest
Jan 21st, 2018
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. @user { "test.user":
  2. ensure => "present",
  3. uid => "31000",
  4. gid => "100",
  5. comment => "Test User ",
  6. home => "/home/test.user",
  7. shell => "/bin/bash",
  8. managehome => "true",
  9. password => "*",
  10. groups => ["studio_app", "studio", "admin"],
  11. require => Group["studio_app", "studio"],
  12. }
  13.  
  14. @ssh_authorized_key { "test.user.key":
  15. ensure => "present",
  16. user => "test.user",
  17. type => "ssh-dss",
  18. name => "test.user@testing.com",
  19. key => "ThisIsMyKey",
  20. }
  21.  
  22.  
  23.  
  24. realize User["test.user"]
  25. realize Ssh_authorized_key["test.user.key"]
  26. Ssh_authorized_key <| title == "test.user.key" |>{
  27. user => "studio_app",
  28. }
Add Comment
Please, Sign In to add comment