mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 01:30:25 +00:00
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:
parent
ad61aef9e5
commit
13f6ff1c6a
3 changed files with 6 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue