mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-17 10:10:30 +00:00
Merge 0bd36e898a
into 61ee875479
This commit is contained in:
commit
cc98cc3c02
1 changed files with 16 additions and 0 deletions
|
@ -1,6 +1,22 @@
|
|||
{%- set saltpath = salt['grains.get']('saltpath') -%}
|
||||
|
||||
{% if "/opt/saltstack/salt" in saltpath %}
|
||||
mysqlclient_packages:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- libmariadb-dev
|
||||
- pkg-config
|
||||
|
||||
mysqlclient:
|
||||
pip.installed:
|
||||
- require:
|
||||
- pkg: mysqlclient_packages
|
||||
{% else %}
|
||||
|
||||
{%- from tpldir ~ "/map.jinja" import mysql with context %}
|
||||
|
||||
mysql_python:
|
||||
pkg.installed:
|
||||
- name: {{ mysql.pythonpkg }}
|
||||
- reload_modules: True
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue