diff options
author | Antoine Beaupré <anarcat@koumbit.org> | 2013-01-07 19:31:14 -0500 |
---|---|---|
committer | Antoine Beaupré <anarcat@koumbit.org> | 2013-01-07 19:31:14 -0500 |
commit | a33c09dd96f310e997c2365ebfd23860b65e61f4 (patch) | |
tree | 9975b61a627b165bab212c182aec5d3465d93f2d | |
parent | 1f736f3ef6a2e1878c164427e40b94e03b5befa0 (diff) |
make sure the user belongs to the right group if we haven't created it
-rw-r--r-- | manifests/repository.pp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/repository.pp b/manifests/repository.pp index 83d081e..5bcf599 100644 --- a/manifests/repository.pp +++ b/manifests/repository.pp @@ -14,7 +14,11 @@ define reprepro::repository ( ) { include reprepro - if !defined(User[$user]) { + if defined(User[$user]) { + User[$user] { + groups +> $group, + } + } else { user { $user: ensure => "present", home => "$basedir", |