mysql-formula/mysql/remove_test_database.sls
David\ Beitey 4e40bc2c51 Add remove test database state
Conflicts:
	README.rst

Conflicts:
	README.rst
2014-10-14 13:28:33 +10:00

14 lines
381 B
Text

{% set mysql_root_pass = salt['pillar.get']('mysql:server:root_password', salt['grains.get']('server_id')) %}
include:
- mysql.python
mysql remove test database:
mysql_database.absent:
- name: test
- host: localhost
- connection_user: root
{% if mysql_root_pass %}
- connection_pass: '{{ mysql_root_pass }}'
{% endif %}
- connection_charset: utf8