Moved the mysql-python package names into package-map.jinja

This commit is contained in:
Seth House 2013-08-22 16:12:13 -06:00
parent 00d8d74204
commit bbcfb3c7d6
3 changed files with 6 additions and 5 deletions

View file

@ -4,17 +4,20 @@
'client': 'mysql-client',
'service': 'mysql',
'config': '/etc/mysql/my.cnf',
'python': 'python-mysqldb',
},
'RedHat': {
'server': 'mysql-server',
'client': 'mysql',
'service': 'mysqld',
'config': '/etc/my.cnf',
'python': 'MySQL-python',
},
'Gentoo': {
'server': 'dev-db/mysql',
'mysql-client': 'dev-db/mysql',
'service': 'mysql',
'config': '/etc/mysql/my.cnf',
'python': 'dev-python/mysql-python',
},
}, merge=salt['pillar.get']('mysql:lookup')) %}

View file

@ -1,9 +1,6 @@
{% set pkg = salt['grains.filter_by']({
'Debian': {'name': 'python-mysqldb'},
'RedHat': {'name': 'MySQL-python'},
}) %}
{% from "mysql/package-map.jinja" import mysql with context %}
mysqldb-python:
pkg:
- installed
- name: {{ pkg.name }}
- name: {{ mysql.python }}

View file

@ -10,3 +10,4 @@ mysql:
client: mysql-client
service: mysql-service
config: /etc/mysql/my.cnf
python: python-mysqldb