<commit_before># loop over all users presented by pillar:
{% for username, details in pillar.get('users', {}).items() %}
{{ username }}:
  user:
    - present
    - fullname: {{ details.get('fullname', '') }}
    - shell: '/bin/bash'

{% if 'pub_ssh_keys' in details %}
  ssh_auth:
    - present
    - user: {{ username }}
    - names:
    {% for pub_ssh_key in details.get('pub_ssh_keys', []) %}
      - {{ pub_ssh_key }}
    {% endfor %}
    - require:
      - user: {{ username }}
  {% endif %}

{% endfor %}
<commit_msg>add sudoer ujanssen<commit_after># loop over all users presented by pillar:
{% for username, details in pillar.get('users', {}).items() %}
{{ username }}:
  user:
    - present
    - fullname: {{ details.get('fullname', '') }}
    - shell: '/bin/bash'

{% if 'pub_ssh_keys' in details %}
  ssh_auth:
    - present
    - user: {{ username }}
    - names:
    {% for pub_ssh_key in details.get('pub_ssh_keys', []) %}
      - {{ pub_ssh_key }}
    {% endfor %}
    - require:
      - user: {{ username }}
  {% endif %}

{% endfor %}

sudoer-ujanssen:
    file.append:
        - name: /etc/sudoers
        - text:
          - "ujanssen    ALL=(ALL)	NOPASSWD: ALL"
{'fraction_non_alphanumeric': 0.18512256973795435, 'fraction_numerical': 0.0, 'mean_word_length': 2.4318840579710144, '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': '1020110', 'n_tokens_mistral': 450, 'n_tokens_neox': 405, 'n_words': 93}