2024-02-06 21:40:19 +01:00
|
|
|
class kandra::profile::redis inherits kandra::profile::base {
|
2020-10-20 02:49:54 +02:00
|
|
|
include zulip::profile::redis
|
2024-02-06 21:40:19 +01:00
|
|
|
include kandra::prometheus::redis
|
2016-08-01 05:24:55 +02:00
|
|
|
|
2024-02-01 19:49:37 +01:00
|
|
|
zulip::sysctl { 'redis-somaxconn':
|
|
|
|
key => 'net.core.somaxconn',
|
|
|
|
value => '65535',
|
|
|
|
}
|
|
|
|
|
2016-08-01 05:24:55 +02:00
|
|
|
# Need redis_password in its own file for Nagios
|
|
|
|
file { '/var/lib/nagios/redis_password':
|
2018-08-13 21:20:34 +02:00
|
|
|
ensure => file,
|
|
|
|
mode => '0600',
|
2018-08-13 21:29:40 +02:00
|
|
|
owner => 'nagios',
|
|
|
|
group => 'nagios',
|
2020-10-29 19:53:17 +01:00
|
|
|
content => "${zulip::profile::redis::redis_password}\n",
|
2016-08-01 05:24:55 +02:00
|
|
|
}
|
2024-01-31 18:07:08 +01:00
|
|
|
|
2024-02-05 20:53:04 +01:00
|
|
|
group { 'redistunnel':
|
|
|
|
ensure => present,
|
|
|
|
gid => '1080',
|
|
|
|
}
|
2024-01-31 18:07:08 +01:00
|
|
|
user { 'redistunnel':
|
|
|
|
ensure => present,
|
|
|
|
uid => '1080',
|
|
|
|
gid => '1080',
|
|
|
|
groups => ['zulip'],
|
|
|
|
shell => '/bin/true',
|
|
|
|
home => '/home/redistunnel',
|
|
|
|
managehome => true,
|
|
|
|
}
|
2024-02-06 21:40:19 +01:00
|
|
|
kandra::user_dotfiles { 'redistunnel':
|
2024-01-31 18:07:08 +01:00
|
|
|
authorized_keys => true,
|
|
|
|
}
|
2016-10-17 04:05:49 +02:00
|
|
|
}
|