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.

This commit is contained in:
Clayton Kramer 2014-05-15 17:15:09 -04:00
parent ad61aef9e5
commit 13f6ff1c6a
3 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,8 @@
{% from "mysql/map.jinja" import mysql with context %}
include:
- mysql.python
{% for database in salt['pillar.get']('mysql:database', []) %}
{{ database }}:
mysql_database.present:

View file

@ -50,11 +50,6 @@ mysqld:
- watch:
- pkg: mysqld
mysql-python:
pkg:
- installed
- name: {{ mysql.python }}
{% if grains['os'] in ['Ubuntu', 'Debian', 'Gentoo', 'CentOS'] %}
my.cnf:
file.managed:

View file

@ -1,5 +1,8 @@
{% from "mysql/map.jinja" import mysql with context %}
include:
- mysql.python
{% for user in salt['pillar.get']('mysql:user', []) %}
{{ user['name'] }}:
mysql_user.present: