Skip to content

Commit 1e9b120

Browse files
authored
update python packages for onedir
1 parent 6057ca7 commit 1e9b120

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

mysql/python.sls

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1+
{%- set saltpath = salt['grains.get']('saltpath') -%}
2+
3+
{% if "/opt/saltstack/salt" in saltpath %}
4+
mysqlclient_packages:
5+
pkg.installed:
6+
- pkgs:
7+
- libmariadb-dev
8+
- pkg-config
9+
10+
mysqlclient:
11+
pip.installed:
12+
- require:
13+
- pkg: mysqlclient_packages
14+
{% else %}
15+
116
{%- from tpldir ~ "/map.jinja" import mysql with context %}
217
318
mysql_python:
419
pkg.installed:
520
- name: {{ mysql.pythonpkg }}
621
- reload_modules: True
22+
{% endif %}

0 commit comments

Comments
 (0)