Guest User

Untitled

a guest
Jul 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. ################################################################
  2. ##
  3. ## modules/users/linux.pp
  4. ## Contains user configuration resources for Linux hosts.
  5. ##
  6. ################################################################
  7.  
  8. class users::linux::install {
  9. }
  10.  
  11. class users::linux::config {
  12.  
  13. # Define admin accounts here. Standardize on UID's across all systems, finally.
  14. # Keep in mind that this will change all UID's for exsiting users that match the
  15. # below usernames. We will need to also update home directory permissions
  16. # to reflect the new UID's. UID's for normal users start at 300.
  17.  
  18. user { "jbaird":
  19. ensure => present,
  20. gid => "jbaird",
  21. comment => "Josh Baird",
  22. home => "/home/jbaird",
  23. password => '$$BOO$$',
  24. shell => "/bin/bash",
  25. managehome => "true",
  26. uid => 300
  27. }
  28. group { "jbaird":
  29. ensure => present,
  30. gid => 300,
  31. }
  32. }
  33.  
  34. class users::linux::service {
  35. }
  36.  
  37. class users::linux inherits users::common {
  38. include users::linux::config
  39. }
Add Comment
Please, Sign In to add comment