<commit_before>
include:
  - mapr.repo
  - mapr.final

mapr-fileserver:
  pkg:
    - installed
    - require:
      - cmd: mapr-key
    - require_in:
      - cmd: finalize

/tmp/disks.txt:
  file:
    - managed
    - user: root
    - group: root
    - mode: 644
    - contents:
      {% for disk in pillar.mapr.fs_disks %}
      - {{ disk }}
      {% endfor %}

# This only needs to happen here, since it's a fileserver thing
setup-disks:
  cmd:
    - run
    - user: root
    - name: '/opt/mapr/server/disksetup /tmp/disks.txt'
    - require:
      - file: /tmp/disks.txt
      - cmd: finalize
<commit_msg>Added unless case for disksetup<commit_after>
include:
  - mapr.repo
  - mapr.final

mapr-fileserver:
  pkg:
    - installed
    - require:
      - cmd: mapr-key
    - require_in:
      - cmd: finalize

/tmp/disks.txt:
  file:
    - managed
    - user: root
    - group: root
    - mode: 644
    - contents:
      {% for disk in pillar.mapr.fs_disks %}
      - {{ disk }}
      {% endfor %}

# This only needs to happen here, since it's a fileserver thing
setup-disks:
  cmd:
    - run
    - user: root
    - name: '/opt/mapr/server/disksetup /tmp/disks.txt'
    - unless: cat /opt/mapr/conf/disktab | grep pillar.mapr.fs_disks[0]
    - require:
      - file: /tmp/disks.txt
      - cmd: finalize

{'fraction_non_alphanumeric': 0.12960122699386503, 'fraction_numerical': 0.005368098159509203, 'mean_word_length': 1.8064516129032258, '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': '84985', 'n_tokens_mistral': 509, 'n_tokens_neox': 488, 'n_words': 115}