Skip to content

Commit

Permalink
use builtin ansible-managed system. This allows for easy modification…
Browse files Browse the repository at this point in the history
… of the message
  • Loading branch information
Jakob Guldberg Aaes committed Nov 14, 2023
1 parent 3c54690 commit 2c37e2b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 1 addition & 3 deletions templates/generic.conf.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
##
## This file is maintained by Ansible - ALL MODIFICATIONS WILL BE REVERTED
##
{{ ansible_managed | comment }}

{% set conf = lookup('vars', item.config) %}
{% for key in conf | sort %}
Expand Down
4 changes: 1 addition & 3 deletions templates/gres.conf.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
##
## This file is maintained by Ansible - ALL MODIFICATIONS WILL BE REVERTED
##
{{ ansible_managed | comment }}

{% set conf = lookup('vars', item.config) %}
{% for gres in conf %}
Expand Down
3 changes: 3 additions & 0 deletions templates/logrotate.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{{ ansible_managed | comment }}

##
# Slurm Logrotate Configuration
##

# TODO: this ignores the actual *LogFile values
{{ '/var/log/slurm-llnl' if __slurm_debian else '/var/log/slurm' }}/*.log {
compress
Expand Down
4 changes: 1 addition & 3 deletions templates/slurm.conf.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
##
## This file is maintained by Ansible - ALL MODIFICATIONS WILL BE REVERTED
##
{{ ansible_managed | comment }}

{% if 'ControlMachine' not in __slurm_config_merged and 'SlurmctldHost' not in __slurm_config_merged %}
# Default, define SlurmctldHost or ControlMachine to override
Expand Down

0 comments on commit 2c37e2b

Please sign in to comment.