Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use builtin ansible-managed system. This allows for easy modification… #57

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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