feat: update python packages for onedir

This commit is contained in:
didiermfb 2023-11-15 16:44:23 +01:00 committed by Didier METRAL
parent 6057ca73a7
commit 0bd36e898a

View file

@ -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 %}