2 class salsa::redis inherits salsa {
3 ensure_packages ( "redis-server", { ensure => 'installed' })
5 service { 'redis-server':
8 require => Package['redis-server'],
11 file { "/etc/redis/redis.conf":
15 source => "puppet:///modules/salsa/redis.conf",
16 notify => Service['redis-server'],
17 require => Package['redis-server'],
20 file { "/var/run/redis":
21 ensure => "directory",
25 notify => Service['redis-server'],
28 exec { 'add-git-user-to-redis':
29 command => 'adduser git redis',
30 onlyif => "getent group redis > /dev/null && ! getent group redis | grep '\\<git\\>' > /dev/null"