Guest User

Untitled

a guest
Oct 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. @user{'steve':
  2. uid => 3001
  3. }
  4. @user{'owen':
  5. uid => 6001,
  6. }
  7. @user{'tim':
  8. uid => 6002
  9. }
  10.  
  11.  
  12. $users = ['steve','owen','tim']
  13.  
  14. define svn_repo ($path = /file/default/${title} ) {
  15. $username = $title
  16. exec{"svn_create_${username}":
  17. creates => "${path}",
  18. command => "/usr/bin/svnadmin create ${path}",
  19. requires => User[$username]
  20. }
  21. User <| title == ${username} |>
  22. }
  23.  
  24.  
  25. # It depends a lot upon the starting point of how your users get
  26. # onto the system. One way.
  27.  
  28.  
  29.  
  30. svn_repo{$users:
  31. $path => '/override/to/this'
  32. }
Add Comment
Please, Sign In to add comment