aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-02-09 16:56:13 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-02-09 16:56:13 -0200
commitf3102cf4c6c2f1c6bfe06e4642efdd6f3cfb9ea8 (patch)
tree7d0f5d7aea2b86c1fc74c0704fe64cfcb6e515f5
parenta4aa626c9cf4fcb8799fcdc31bd665148ed6876d (diff)
downloadpuppet-git-f3102cf4c6c2f1c6bfe06e4642efdd6f3cfb9ea8.tar.gz
puppet-git-f3102cf4c6c2f1c6bfe06e4642efdd6f3cfb9ea8.tar.bz2
Adds git::daemon::groups
-rw-r--r--manifests/daemon.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp
index e2d24f7..41ef0b7 100644
--- a/manifests/daemon.pp
+++ b/manifests/daemon.pp
@@ -1,6 +1,7 @@
class git::daemon (
$implementation = hiera('git::daemon::implementation', 'gitolite'),
- $inetd = hiera('git::daemon::inetd', true)
+ $inetd = hiera('git::daemon::inetd', true),
+ $groups = hiera('git::daemon::groups, [ 'puppet' ]),
) {
# directory for git user and repositories
file { "/var/git":
@@ -45,7 +46,7 @@ class git::daemon (
shell => "/bin/sh",
gid => "git",
password => '*',
- groups => [ "puppet" ],
+ groups => $groups,
require => Group["git"],
}