File tree Expand file tree Collapse file tree 4 files changed +26
-0
lines changed Expand file tree Collapse file tree 4 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1
1
## v1.9.2
2
2
3
3
- Nomad v0.10.1
4
+ - Production hardening of systemd unit (thanks @bdossantos )
4
5
- Update documentation
5
6
6
7
## v1.9.1
Original file line number Diff line number Diff line change @@ -21,3 +21,4 @@ Thank you to all these fine folk for helping with ansible-nomad!
21
21
- [ @pxsloot ] ( https://github.com/pxsloot )
22
22
- [ @rbjorklin ] ( https://github.com/rbjorklin )
23
23
- [ @camskkz ] ( https://github.com/camskkz )
24
+ - [ @bdossantos ] ( https://github.com/bdossantos )
Original file line number Diff line number Diff line change 119
119
mode : 0755
120
120
when : not ansible_service_mgr == "systemd" and ansible_os_family == "Debian"
121
121
122
+ - name : extract systemd version
123
+ shell : |
124
+ set -o pipefail
125
+ systemctl --version systemd | head -n 1 | cut -d' ' -f2
126
+ args :
127
+ executable : /bin/bash
128
+ changed_when : false
129
+ check_mode : false
130
+ register : systemd_version
131
+ when :
132
+ - ansible_service_mgr == "systemd"
133
+ - not ansible_os_family == "FreeBSD"
134
+ - not ansible_os_family == "Solaris"
135
+ tags : skip_ansible_lint
136
+
122
137
- name : systemd script
123
138
template :
124
139
src : nomad_systemd.service.j2
Original file line number Diff line number Diff line change 10
10
11
11
[Unit]
12
12
Description=nomad agent
13
+ Documentation=https://nomadproject.io/docs/
13
14
Wants=basic.target
14
15
After=basic.target network.target
15
16
@@ -20,8 +21,16 @@ ExecStart={{ nomad_bin_dir }}/nomad agent -config={{ nomad_config_dir }}
20
21
21
22
ExecReload=/bin/kill -HUP $MAINPID
22
23
KillMode=process
24
+ KillSignal=SIGINT
25
+ LimitNOFILE=infinity
26
+ LimitNPROC=infinity
23
27
Restart=on-failure
24
28
RestartSec=42s
29
+ StartLimitBurst=3
30
+ StartLimitIntervalSec=10
31
+ {% if systemd_version .stdout is version ('226' , '>=' ) %}
32
+ TasksMax=infinity
33
+ {% endif %}
25
34
26
35
[Install]
27
36
WantedBy=multi-user.target
You can’t perform that action at this time.
0 commit comments