<commit_before>{% from "slurm/map.jinja" import slurm with context %}

include:
  - slurm.config

install_slurmworker:
  pkg.installed:
    - pkgs:
      - {{ slurm.pkgSlurm }}
      - {{ slurm.pkgSlurmDevel }}
      - {{ slurm.pkgSlurmMunge }}
      - {{ slurm.pkgSlurmPlugins }}
      - {{ slurm.pkgSlurmSjobexit }}
      - {{ slurm.pkgSlurmSjstat }}

mkdir_slurmd_spool:
  file.directory:
    - name: {{ slurm.global.SlurmdSpoolDir }}
    - user: slurm
    - group: slurm
    - mode: 0755
    - makedirs: True
    - require:
      - user: slurm
      - group: slurm

touch_slurmd_log:
  file.managed:
    - name: {{ slurm.logging_accounting.SlurmdLogFile }}
    - source: ~
    - user: slurm
    - group: slurm
    - require:
      - file: /var/log/slurm
      - user: slurm
      - group: slurm

start_slurmd:
  service.running:
    - enable: True
    - name: slurmd
    - require:
      - file: /etc/slurm/slurm.conf
      - user: slurm
      - group: slurm
    - watch:
      - file: /etc/slurm/slurm.conf
<commit_msg>add munge<commit_after>{% from "slurm/map.jinja" import slurm with context %}

include:
  - slurm.config
  - munge

install_slurmworker:
  pkg.installed:
    - pkgs:
      - {{ slurm.pkgSlurm }}
      - {{ slurm.pkgSlurmDevel }}
      - {{ slurm.pkgSlurmMunge }}
      - {{ slurm.pkgSlurmPlugins }}
      - {{ slurm.pkgSlurmSjobexit }}
      - {{ slurm.pkgSlurmSjstat }}

mkdir_slurmd_spool:
  file.directory:
    - name: {{ slurm.global.SlurmdSpoolDir }}
    - user: slurm
    - group: slurm
    - mode: 0755
    - makedirs: True
    - require:
      - user: slurm
      - group: slurm

touch_slurmd_log:
  file.managed:
    - name: {{ slurm.logging_accounting.SlurmdLogFile }}
    - source: ~
    - user: slurm
    - group: slurm
    - require:
      - file: /var/log/slurm
      - user: slurm
      - group: slurm

start_slurmd:
  service.running:
    - enable: True
    - name: slurmd
    - require:
      - file: /etc/slurm/slurm.conf
      - user: slurm
      - group: slurm
    - watch:
      - file: /etc/slurm/slurm.conf

{'fraction_non_alphanumeric': 0.13291139240506328, 'fraction_numerical': 0.0038948393378773127, 'mean_word_length': 1.9399141630901287, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '61762', 'n_tokens_mistral': 800, 'n_tokens_neox': 845, 'n_words': 136}