projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72c1031
)
Add git user to group redis
author
Peter Palfrader
<peter@palfrader.org>
Fri, 1 Sep 2017 18:55:24 +0000
(18:55 +0000)
committer
Peter Palfrader
<peter@palfrader.org>
Fri, 1 Sep 2017 18:55:24 +0000
(18:55 +0000)
modules/salsa/manifests/redis.pp
patch
|
blob
|
history
diff --git
a/modules/salsa/manifests/redis.pp
b/modules/salsa/manifests/redis.pp
index
a69f934
..
6a438f6
100644
(file)
--- 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 '\\<git\\>' > /dev/null"
+ }
}