Skip to content
Snippets Groups Projects
Commit 13f6ff1c authored by Clayton Kramer's avatar Clayton Kramer
Browse files

Moved the python-mysql package out of the server installed and added it as a...

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.
parent ad61aef9
No related branches found
No related tags found
No related merge requests found
{% from "mysql/map.jinja" import mysql with context %} {% from "mysql/map.jinja" import mysql with context %}
include:
- mysql.python
{% for database in salt['pillar.get']('mysql:database', []) %} {% for database in salt['pillar.get']('mysql:database', []) %}
{{ database }}: {{ database }}:
mysql_database.present: mysql_database.present:
......
...@@ -50,11 +50,6 @@ mysqld: ...@@ -50,11 +50,6 @@ mysqld:
- watch: - watch:
- pkg: mysqld - pkg: mysqld
mysql-python:
pkg:
- installed
- name: {{ mysql.python }}
{% if grains['os'] in ['Ubuntu', 'Debian', 'Gentoo', 'CentOS'] %} {% if grains['os'] in ['Ubuntu', 'Debian', 'Gentoo', 'CentOS'] %}
my.cnf: my.cnf:
file.managed: file.managed:
......
{% from "mysql/map.jinja" import mysql with context %} {% from "mysql/map.jinja" import mysql with context %}
include:
- mysql.python
{% for user in salt['pillar.get']('mysql:user', []) %} {% for user in salt['pillar.get']('mysql:user', []) %}
{{ user['name'] }}: {{ user['name'] }}:
mysql_user.present: mysql_user.present:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment