mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-15 17:20:25 +00:00
Added RedHat package names; switched to grains.filter_by lookup
This commit is contained in:
parent
4e6ce85f09
commit
8ce3965082
1 changed files with 6 additions and 6 deletions
|
@ -1,9 +1,9 @@
|
|||
{% set pkg = salt['grains.filter_by']({
|
||||
'Debian': {'name': 'mysql-client'},
|
||||
'RedHat': {'name': 'mysql'},
|
||||
}) %}
|
||||
|
||||
mysql:
|
||||
pkg:
|
||||
- installed
|
||||
{% if grains['os_family'] == 'Debian' %}
|
||||
- pkgs:
|
||||
- mysql-client
|
||||
- mysql-server
|
||||
{% endif %}
|
||||
|
||||
- name: {{ pkg.name }}
|
||||
|
|
Loading…
Add table
Reference in a new issue