Guest User

Untitled

a guest
Jan 13th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. define useraccount ( $admin = false ) {
  2. if $admin {
  3. exec { "make_admin": }
  4. }
  5. }
  6.  
  7. class users::people {
  8. @useraccount { "bob": }
  9. }
  10.  
  11. class users::admin inherits users::people {
  12. if defined(Useraccount["bob"]) {
  13. Useraccount["bob"] {
  14. admin => true,
  15. }
  16. }
  17. }
  18.  
  19. define admin_users {
  20. include users::admin
  21. }
Add Comment
Please, Sign In to add comment