<commit_before>#
# Install and configure local MySQL server for development / QA
# For production setup, a high-available solution or DBaaS (database-as-a-service) should be used
#

mysql-server:
  pkg.installed:
    - pkgs:
      - mariadb-server
      - mariadb-client
      - mariadb-backup
      - software-properties-common
      - dirmngr
      - apt-transport-https

mysql:
  service.running:
    - enable: True
    - watch:
      - pkg: mysql-server
      - file: /etc/mysql/my.cnf

/etc/mysql/my.cnf:
  file.managed:
    - source: salt://mysql-server/files/etc/mysql/my.cnf
    - template: jinja

/etc/mysql/conf.d/strict.cnf:<commit_msg>MariaDB config installation fix<commit_after>#
# Install and configure local MySQL server for development / QA
# For production setup, a high-available solution or DBaaS (database-as-a-service) should be used
#

mysql-server:
  pkg.installed:
    - pkgs:
      - mariadb-server
      - mariadb-client
      - mariadb-backup
      - software-properties-common
      - dirmngr
      - apt-transport-https

mysqld:
  service.running:
    - enable: True
    - watch:
      - pkg: mysql-server
      - file: /etc/mysql/my.cnf

/etc/mysql/my.cnf:
  file.managed:
    - source: salt://mysql-server/files/etc/mysql/my.cnf
    - template: jinja

/etc/mysql/conf.d/strict.cnf:
{'fraction_non_alphanumeric': 0.1172886519421173, 'fraction_numerical': 0.0, 'mean_word_length': 2.3692307692307693, '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': '6872155', 'n_tokens_mistral': 462, 'n_tokens_neox': 454, 'n_words': 96}