2014-02-10 20:52:05 +01:00
|
|
|
; This file was auto-generated by Puppet. Do not edit by hand.
|
|
|
|
|
|
|
|
<%
|
|
|
|
i = 0
|
|
|
|
@hosts.each do |host|
|
|
|
|
-%>
|
2022-11-01 20:10:38 +01:00
|
|
|
[program:autossh-tunnel-<%= host %>]
|
2024-04-11 17:02:24 +02:00
|
|
|
environment=AUTOSSH_DEBUG=1
|
|
|
|
command=bash -c 'exec autossh -N -M <%= 20000 + 2 * i %> -o ControlMaster=yes nagios@<%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %> 2>&1 | ts "%%b %%d %%H:%%M:%%.S"'
|
2014-02-10 20:52:05 +01:00
|
|
|
priority=200 ; the relative start priority (default 999)
|
|
|
|
autostart=true ; start at supervisord start (default: true)
|
|
|
|
autorestart=true ; whether/when to restart (default: unexpected)
|
|
|
|
stopsignal=TERM ; signal used to kill process (default TERM)
|
|
|
|
stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
2024-04-11 17:02:24 +02:00
|
|
|
stopasgroup=true
|
2014-02-10 20:52:05 +01:00
|
|
|
user=nagios ; setuid to this UNIX account to run the program
|
|
|
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
|
|
|
stdout_logfile=/var/log/zulip/autossh.<%= host %>.log ; stdout log path, NONE for none; default AUTO
|
|
|
|
|
|
|
|
<%
|
|
|
|
i += 1
|
|
|
|
end
|
|
|
|
-%>
|