Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @user{'steve':
- uid => 3001
- }
- @user{'owen':
- uid => 6001,
- }
- @user{'tim':
- uid => 6002
- }
- $users = ['steve','owen','tim']
- define svn_repo ($path = /file/default/${title} ) {
- $username = $title
- exec{"svn_create_${username}":
- creates => "${path}",
- command => "/usr/bin/svnadmin create ${path}",
- requires => User[$username]
- }
- User <| title == ${username} |>
- }
- # It depends a lot upon the starting point of how your users get
- # onto the system. One way.
- svn_repo{$users:
- $path => '/override/to/this'
- }
Add Comment
Please, Sign In to add comment