Skip to content

Commit

Permalink
CHANGELOG++
Browse files Browse the repository at this point in the history
  • Loading branch information
brianshumate committed Nov 5, 2019
2 parents 4aa2749 + ad1d753 commit cf33337
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## v1.9.2

- Nomad v0.10.1
- Production hardening of systemd unit (thanks @bdossantos)
- Update documentation

## v1.9.1
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
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!
- [@pxsloot](https://github.com/pxsloot)
- [@rbjorklin](https://github.com/rbjorklin)
- [@camskkz](https://github.com/camskkz)
- [@bdossantos](https://github.com/bdossantos)
15 changes: 15 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -119,6 +119,21 @@
mode: 0755
when: not ansible_service_mgr == "systemd" and ansible_os_family == "Debian"

- name: extract systemd version
shell: |
set -o pipefail
systemctl --version systemd | head -n 1 | cut -d' ' -f2
args:
executable: /bin/bash
changed_when: false
check_mode: false
register: systemd_version
when:
- ansible_service_mgr == "systemd"
- not ansible_os_family == "FreeBSD"
- not ansible_os_family == "Solaris"
tags: skip_ansible_lint

- name: systemd script
template:
src: nomad_systemd.service.j2
9 changes: 9 additions & 0 deletions templates/nomad_systemd.service.j2
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@

[Unit]
Description=nomad agent
Documentation=https://nomadproject.io/docs/
Wants=basic.target
After=basic.target network.target

@@ -20,8 +21,16 @@ ExecStart={{ nomad_bin_dir }}/nomad agent -config={{ nomad_config_dir }}

ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
KillSignal=SIGINT
LimitNOFILE=infinity
LimitNPROC=infinity
Restart=on-failure
RestartSec=42s
StartLimitBurst=3
StartLimitIntervalSec=10
{% if systemd_version.stdout is version('226', '>=') %}
TasksMax=infinity
{% endif %}

[Install]
WantedBy=multi-user.target

0 comments on commit cf33337

Please sign in to comment.