Make SUSE package name compatible with Leap 42.x

python2-pymysql exists only in Leap 15 and Tumbleweed.

Up to Leap 42.3, the package is named python-pymysql.
This commit is contained in:
Christian Boltz 2018-04-25 21:53:52 +02:00
parent 134130025f
commit af621bce24
No known key found for this signature in database
GPG key ID: C6A682EA63C82F1C

View file

@ -208,7 +208,12 @@ SUSE:
server: mariadb
client: mariadb-client
service: mysql
python: python2-PyMySQL
{%- if salt['grains.get']('osmajorrelease')|int == 42 %}
# "old" package name up to Leap 42.x
python: python-PyMySQL
{% else %}
python: python2-pymysql
{% endif %}
config:
file: /etc/my.cnf
sections: