summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/repository.pp6
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",