Select Git revision
database.sls
-
Clayton Kramer authored
Moved the python-mysql package out of the server installed and added it as a SLS include for the database and user SLS that depend on it.
Clayton Kramer authoredMoved the python-mysql package out of the server installed and added it as a SLS include for the database and user SLS that depend on it.
database.sls 376 B
{% from "mysql/map.jinja" import mysql with context %}
include:
- mysql.python
{% for database in salt['pillar.get']('mysql:database', []) %}
{{ database }}:
mysql_database.present:
- host: localhost
- connection_user: root
- connection_pass: '{{ salt['pillar.get']('mysql:server:root_password', 'somepass') }}'
- connection_charset: utf8
{% endfor %}