<commit_before>include:
  - apache

rootco.de-web:
  git.latest:
    - name: https://github.com/sysrich/rootco.de-web.git
    - target: /srv/git/rootco.de-web
    - user: wwwrun
    - require:
      - pkg: apache2
      - file: /srv/www/htdocs

git -C /srv/git/rootco.de-web pull -q:
  cron.present:
    - user: wwwrun
    - minute: '*/5'
    - require:
      - git: rootco.de-web

python2-certbot:
  pkg.installed: []

/etc/apache2/vhosts.d/SSL-rootco.de.conf:
  file.managed:
    - user: root
    - group: root
    - mode: 644
    - source: salt://rootco/web/SSL-rootco.de.conf
    - require:
      - pkg: apache2

/usr/bin/certbot renew --quiet --post-hook "systemctl restart apache2":
  cron.present:
    - user: root
    - minute: 23
    - hour: 11,23
    - require:
      - pkg: certbot

/etc/systemd/system/rootco-web-backup.service:
  file.managed:
    - user: root
    - group: root
    - mode: 644
    - source: salt://rootco/web/rootco-web-backup.service
    - template: jinja

/etc/systemd/system/rootco-web-backup.timer:
  file.managed:
    - user: root
    - group: root
    - mode: 644
    - source: salt://rootco/web/rootco-web-backup.timer
    - require:
      - file: /etc/systemd/system/rootco-web-backup.service

rootco-web-backup.timer:
  service.running:
    - enable: True
    - require:
      - file: /etc/systemd/system/rootco-web-backup.timer
<commit_msg>Rename certbot pkg part 2<commit_after>include:
  - apache

rootco.de-web:
  git.latest:
    - name: https://github.com/sysrich/rootco.de-web.git
    - target: /srv/git/rootco.de-web
    - user: wwwrun
    - require:
      - pkg: apache2
      - file: /srv/www/htdocs

git -C /srv/git/rootco.de-web pull -q:
  cron.present:
    - user: wwwrun
    - minute: '*/5'
    - require:
      - git: rootco.de-web

python2-certbot:
  pkg.installed: []

/etc/apache2/vhosts.d/SSL-rootco.de.conf:
  file.managed:
    - user: root
    - group: root
    - mode: 644
    - source: salt://rootco/web/SSL-rootco.de.conf
    - require:
      - pkg: apache2

/usr/bin/certbot renew --quiet --post-hook "systemctl restart apache2":
  cron.present:
    - user: root
    - minute: 23
    - hour: 11,23
    - require:
      - pkg: python2-certbot

/etc/systemd/system/rootco-web-backup.service:
  file.managed:
    - user: root
    - group: root
    - mode: 644
    - source: salt://rootco/web/rootco-web-backup.service
    - template: jinja

/etc/systemd/system/rootco-web-backup.timer:
  file.managed:
    - user: root
    - group: root
    - mode: 644
    - source: salt://rootco/web/rootco-web-backup.timer
    - require:
      - file: /etc/systemd/system/rootco-web-backup.service

rootco-web-backup.timer:
  service.running:
    - enable: True
    - require:
      - file: /etc/systemd/system/rootco-web-backup.timer

{'fraction_non_alphanumeric': 0.1498921639108555, 'fraction_numerical': 0.015815959741193385, 'mean_word_length': 2.0717439293598234, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, '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': '5244514', 'n_tokens_mistral': 1112, 'n_tokens_neox': 1063, 'n_words': 188}