Skip to content

Commit 899443c

Browse files
authored
Fixes custom RPC port for client. (#138)
* Fixes custom RPC port for client. * Always restart service - does not restart by default on reboot.
1 parent 06c50d5 commit 899443c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/client.hcl.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ client {
88
servers = [
99
{%- set comma = joiner(",") -%}
1010
{%- for server in nomad_servers -%}
11-
{{ comma() }}"{{ hostvars[server]['nomad_advertise_address'] | ipwrap }}"
11+
{{ comma() }}"{{ hostvars[server]['nomad_advertise_address'] | ipwrap }}:{{ nomad_ports.rpc }}"
1212
{%- endfor -%} ]
1313
{% endif %}
1414

templates/nomad_systemd.service.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ KillMode=process
2626
KillSignal=SIGINT
2727
LimitNOFILE=infinity
2828
LimitNPROC=infinity
29-
Restart=on-failure
30-
RestartSec=42s
29+
Restart=always
30+
RestartSec=120
3131
{% if systemd_version.stdout is version('226', '>=') %}
3232
TasksMax=infinity
3333
{% endif %}

0 commit comments

Comments
 (0)