From: Peter Palfrader Date: Fri, 1 Sep 2017 18:55:24 +0000 (+0000) Subject: Add git user to group redis X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=7d96c07dd79625c48adfa481a40d8a006037d2c0;p=mirror%2Fdsa-puppet.git Add git user to group redis --- diff --git a/modules/salsa/manifests/redis.pp b/modules/salsa/manifests/redis.pp index a69f93433..6a438f655 100644 --- a/modules/salsa/manifests/redis.pp +++ b/modules/salsa/manifests/redis.pp @@ -24,4 +24,9 @@ class salsa::redis inherits salsa { group => redis, notify => Service['redis-server'], } + + exec { 'add-git-user-to-redis': + command => 'adduser git redis', + onlyif => "getent group redis > /dev/null && ! getent group redis | grep '\\' > /dev/null" + } }