puppet: Add redis host to ~redistunnel/.ssh/known_hosts.

This commit is contained in:
Alex Vandiver 2024-02-06 13:46:36 -05:00 committed by Tim Abbott
parent aaf3eb514d
commit ccc106dca3
1 changed files with 7 additions and 3 deletions

View File

@ -11,6 +11,7 @@ class zulip_ops::app_frontend {
zulip_ops::firewall_allow{ 'http': } zulip_ops::firewall_allow{ 'http': }
zulip_ops::firewall_allow{ 'https': } zulip_ops::firewall_allow{ 'https': }
$redis_hostname = zulipconf('redis', 'hostname', undef)
group { 'redistunnel': group { 'redistunnel':
ensure => present, ensure => present,
gid => '1080', gid => '1080',
@ -25,13 +26,16 @@ class zulip_ops::app_frontend {
managehome => true, managehome => true,
} }
zulip_ops::user_dotfiles { 'redistunnel': zulip_ops::user_dotfiles { 'redistunnel':
keys => true, keys => true,
known_hosts => [$redis_hostname],
} }
package { 'autossh': ensure => installed } package { 'autossh': ensure => installed }
$redis_hostname = zulipconf('redis', 'hostname', undef)
file { "${zulip::common::supervisor_conf_dir}/redis_tunnel.conf": file { "${zulip::common::supervisor_conf_dir}/redis_tunnel.conf":
ensure => file, ensure => file,
require => Package['supervisor', 'autossh'], require => [
Package['supervisor', 'autossh'],
Zulip_Ops::User_Dotfiles['redistunnel'],
],
owner => 'root', owner => 'root',
group => 'root', group => 'root',
mode => '0644', mode => '0644',