]> gitweb.fluxo.info Git - puppet-git.git/commitdiff
Adds git::daemon::groups
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 9 Feb 2017 18:56:13 +0000 (16:56 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 9 Feb 2017 18:56:13 +0000 (16:56 -0200)
manifests/daemon.pp

index e2d24f78e4387c99fbd6aad3bf9b50d2f1abd0ee..41ef0b7a029f135c388dbe0f58dd910012cf7328 100644 (file)
@@ -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"],
   }