Closed blmhemu closed 2 years ago
https://github.com/nahsi/ansible-nomad/blob/c624e6b06a5f6f4d16da1984ee3d03c88ac3eb25/defaults/main.yml#L56 must to changed to
Group={{ nomad_group }}
Also, StartLimitIntervalSec=10 and StartLimitBurst=3 are now moved into [Unit] section from [Service] section. The final config looks like this:
StartLimitIntervalSec=10
StartLimitBurst=3
[Unit]
[Service]
[Unit] Description="HashiCorp Nomad - a workload orchestrator" Documentation=https://www.nomadproject.io/docs/ Requires=network-online.target After=network-online.target ConditionFileNotEmpty=/opt/nomad/nomad.json StartLimitIntervalSec=10 StartLimitBurst=3 [Service] User=root Group=root ExecStart=/usr/bin/nomad agent -config /opt/nomad/nomad.json -config=/opt/nomad/config.d ExecReload=/bin/kill --signal HUP $MAINPID KillMode=process KillSignal=SIGINT Restart=on-failure RestartSec=2 TasksMax=infinity [Install] WantedBy=multi-user.target
https://github.com/nahsi/ansible-nomad/blob/c624e6b06a5f6f4d16da1984ee3d03c88ac3eb25/defaults/main.yml#L56 must to changed to
Also,
StartLimitIntervalSec=10
andStartLimitBurst=3
are now moved into[Unit]
section from[Service]
section. The final config looks like this: