mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-17 10:10:30 +00:00
15 lines
466 B
Text
15 lines
466 B
Text
{% set mysql_root_pass = salt['pillar.get']('mysql:server:root_password', salt['grains.get']('server_id')) %}
|
|
{% set mysql_host = salt['pillar.get']('mysql:server:host', 'localhost') %}
|
|
|
|
include:
|
|
- mysql.python
|
|
|
|
mysql remove test database:
|
|
mysql_database.absent:
|
|
- name: test
|
|
- host: '{{ mysql_host }}'
|
|
- connection_user: root
|
|
{% if mysql_root_pass %}
|
|
- connection_pass: '{{ mysql_root_pass }}'
|
|
{% endif %}
|
|
- connection_charset: utf8
|