Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Switch to more explicit variable rather than reuse a nagios one.

Alex Vandivera215c83c2d81
diff --git a/puppet/zulip_ops/manifests/app_frontend.pp b/puppet/zulip_ops/manifests/app_frontend.pp
index 0fea40180b3..138342a1f64 100644
--- a/puppet/zulip_ops/manifests/app_frontend.pp
+++ b/puppet/zulip_ops/manifests/app_frontend.pp
@@ -9,7 +9,7 @@ class zulip_ops::app_frontend {
'autossh',
]
package { $app_packages: ensure => 'installed' }
- $default_host_domain = zulipconf('nagios', 'default_host_domain', undef)
+ $redis_hostname = zulipconf('redis', 'hostname', undef)
file { '/etc/logrotate.d/zulip':
ensure => file,
diff --git a/puppet/zulip_ops/templates/supervisor/conf.d/redis_tunnel.conf.template.erb b/puppet/zulip_ops/templates/supervisor/conf.d/redis_tunnel.conf.template.erb
index 93c7e66e3d9..627110270b9 100644
--- a/puppet/zulip_ops/templates/supervisor/conf.d/redis_tunnel.conf.template.erb
+++ b/puppet/zulip_ops/templates/supervisor/conf.d/redis_tunnel.conf.template.erb
@@ -1,5 +1,5 @@
[program:redis-tunnel]
-command=autossh -M 0 -N -L 127.0.0.1:6379:127.0.0.1:6379 -o ServerAliveInterval=30 -o ServerAliveCountMax=3 redis0.<%= @default_host_domain %>
+command=autossh -M 0 -N -L 127.0.0.1:6379:127.0.0.1:6379 -o ServerAliveInterval=30 -o ServerAliveCountMax=3 <%= @redis_hostname %>
priority=50
user=zulip
autostart=true