salt-states/pod/mariadb.sls

21 lines
409 B
Plaintext
Raw Permalink Normal View History

2023-06-27 07:16:37 +00:00
{% from 'lib.sls' import pod_deploy with context %}
Create data directory for mariadb:
file.directory:
- name: /srv/mariadb
- user: 999
- group: 999
- mode: "0755"
2023-07-07 06:39:03 +00:00
Create my.cnf for mysqlg_exporter:
file.managed:
- name: /srv/my.cnf
- source: salt://pod/files/my.cnf.jinja
- template: jinja
- user: root
- group: root
- mode: "0755"
2023-06-27 07:16:37 +00:00
{{ pod_deploy('mariadb') }}