mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 23:26:58 +02:00
Update to 2023-07-08 16:00
This commit is contained in:
@@ -5,10 +5,14 @@ Wants=network-online.target
|
||||
After=network-online.target
|
||||
After=vault.service
|
||||
After=consul.service
|
||||
After=nomad-vault-agent.service
|
||||
ConditionFileNotEmpty={{ nomad_root_dir }}/etc/nomad.hcl
|
||||
|
||||
# Nomad version {{ nomad_current_version }}
|
||||
[Service]
|
||||
EnvironmentFile=-{{ nomad_root_dir }}/etc/nomad.env
|
||||
EnvironmentFile=-/run/nomad/vault.env
|
||||
EnvironmentFile=-/run/nomad/consul.env
|
||||
{% if nomad_conf.consul.ssl and nomad_conf.client.enabled %}
|
||||
Environment=CONSUL_HTTP_SSL=true
|
||||
Environment=CONSUL_HTTP_ADDR=localhost:{{ (consul_services is defined) | ternary(consul_services.https.port, '8501') }}
|
||||
@@ -18,7 +22,7 @@ Environment=CONSUL_CLIENT_KEY={{ nomad_conf.consul.key_file }}
|
||||
{% endif %}
|
||||
User={{ nomad_user }}
|
||||
Group={{ nomad_user }}
|
||||
ExecStart={{ nomad_root_dir }}/bin/nomad agent -config={{ nomad_root_dir }}/etc/
|
||||
ExecStart=/usr/local/bin/nomad agent -config {{ nomad_root_dir }}/etc
|
||||
ExecReload=/bin/kill --signal HUP $MAINPID
|
||||
Restart=on-failure
|
||||
LimitNOFILE=65536
|
||||
|
Reference in New Issue
Block a user