<commit_before>include:
  - nginx
  - git
  - git.deploy_keys
  - certs

{% set root = "/home/" + pillar['user'] + "/bundles/bruno.renie.fr" %}

bruno.renie.fr:
  file.directory:
    - name: {{ root }}
    - user: {{ pillar['user'] }}
    - group: {{ pillar['user'] }}
    - makedirs: True
  cmd.run:
    - name: git clone <EMAIL>:bruno/bruno.renie.fr.git .
    - cwd: {{ root }}
    - user: {{ pillar['user'] }}
    - unless: file {{ root }}/.git/config
    - require:
      - file: bruno.renie.fr

bruno.renie.fr-nginx-available:
  file.managed:
    - name: /etc/nginx/sites-available/bruno.renie.fr.conf<commit_msg>Require the deploy key before git clone<commit_after>include:
  - nginx
  - git
  - git.deploy_keys
  - certs

{% set root = "/home/" + pillar['user'] + "/bundles/bruno.renie.fr" %}

bruno.renie.fr:
  file.directory:
    - name: {{ root }}
    - user: {{ pillar['user'] }}
    - group: {{ pillar['user'] }}
    - makedirs: True
  cmd.run:
    - name: git clone <EMAIL>:bruno/bruno.renie.fr.git .
    - cwd: {{ root }}
    - user: {{ pillar['user'] }}
    - unless: file {{ root }}/.git/config
    - require:
      - file: bruno.renie.fr
      - file: deploy-key-bruno.renie.fr

bruno.renie.fr-nginx-available:
  file.managed:
    - name: /etc/nginx/sites-available/bruno.renie.fr.conf
{'fraction_non_alphanumeric': 0.1935483870967742, 'fraction_numerical': 0.0, 'mean_word_length': 2.3669250645994833, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2326344', 'n_tokens_mistral': 523, 'n_tokens_neox': 502, 'n_words': 87}