Skip to content

Commit

Permalink
Add nhc_watchdog_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
timeu committed Jun 30, 2022
1 parent 8fd4ed2 commit 9f6e141
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace: clip
name: hpc

# The version of the collection. Must be compatible with semantic versioning
version: 1.1.1
version: 1.1.2

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
2 changes: 2 additions & 0 deletions roles/nhc/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ nhc_group_random_user: "role.cbe.users"

# overwrite default timeout
nhc_timeout:

nhc_watchdog_timeout:
18 changes: 18 additions & 0 deletions roles/nhc/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,21 @@
with_items: "{{ nhc_scripts }}"
when: nhc_scripts.0 | length > 0
tags: nhc_reconfigure

- name: Overwrite watchdog timeout
copy:
content: |
TIMEOUT={{ nhc_watchdog_timeout }}
dest: /etc/sysconfig/nhc
mode: 0644
owner: root
group: root
when: nhc_watchdog_timeout
tags: nhc_reconfigure

- name: Remove watchdog timeout
file:
dest: /etc/sysconfig/nhc
state: absent
when: not nhc_watchdog_timeout
tags: nhc_reconfigure

0 comments on commit 9f6e141

Please sign in to comment.