Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. # pwd
  2. /etc/puppet/environments/env/modules/useraccounts/manifests
  3. # cat init.pp
  4. class useraccounts($realusers=[''], $appusers=''){
  5. include useraccounts::thisone
  6. include useraccounts::user
  7. include useraccounts::adminusers
  8. include useraccounts::thisonetoo
  9.  
  10. user { 'zzz': ensure => 'absent' }
  11. user { 'yyy': ensure => 'absent' }
  12.  
  13. if $realusers != '' {
  14. realize Add_user[$realusers]
  15. realize Manage_ssh_key[$realusers]
  16. }
  17. if $appusers != '' {
  18. realize Add_user[$appusers]
  19. }
  20. }
  21.  
  22. -----
  23.  
  24. -rw-r--r-- 1 root root 27136 Oct 19 14:47 adminusers.pp
  25. -rw-r--r-- 1 root root 387 Oct 24 12:27 init.pp
  26. -rw-r--r-- 1 root root 695 Oct 24 10:50 thisone.pp
  27. -rw-r--r-- 1 root root 362 Oct 24 10:50 thisonetoo.pp
  28. -rw-r--r-- 1 root root 3884 Apr 11 2016 user.pp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement