Guest User

Untitled

a guest
Jan 19th, 2018
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 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. $testuserkey = "ThisIsATestKey"
  15.  
  16. @ssh_authorized_key { "test.user.key":
  17. ensure => "present",
  18. user => "test.user",
  19. type => "ssh-dss",
  20. #name => "test.user@testing.com",
  21. key => $testuserkey,
  22. }
  23. @ssh_authorized_key { "test.user.key.studio_app":
  24. ensure => "present",
  25. user => "studio_app",
  26. type => "ssh-dss",
  27. name => "test.user@testing.com-studio_app",
  28. key => $testuserkey,
  29. }
  30.  
  31.  
  32.  
  33. realize User["test.user"]
  34. realize Ssh_authorized_key["test.user.key"]
  35. realize Ssh_authorized_key["test.user.key.studio_app"]
  36.  
  37. }
Add Comment
Please, Sign In to add comment