Skip to content

Commit

Permalink
feat: update python packages for onedir
Browse files Browse the repository at this point in the history
  • Loading branch information
didiermfb committed Nov 16, 2023
1 parent 6057ca7 commit 0bd36e8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mysql/python.sls
Original file line number Diff line number Diff line change
@@ -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 %}

0 comments on commit 0bd36e8

Please sign in to comment.