Added the extra package installation

This commit is contained in:
Gregory Ballantine 2017-05-16 16:30:06 -04:00
parent e9f90fe406
commit 675cff69fe
2 changed files with 9 additions and 3 deletions

View File

@ -4,3 +4,9 @@ sssd_package:
pkg.{{ sssd.package_status }}: pkg.{{ sssd.package_status }}:
- name: {{ sssd.package_name }} - name: {{ sssd.package_name }}
{% if sssd.package_extras %}
sssd_package_extras:
pkg.installed:
- pkgs: {{ sssd.package_extras|json }}
{% endif %}

View File

@ -11,13 +11,13 @@ that differ from whats in defaults.yaml
{% set flavor_map = salt['grains.filter_by']( {% set flavor_map = salt['grains.filter_by'](
{ {
'Debian': { 'Debian': {
'package_extra': ['libpam-runtime', 'libpam-sss', 'libnss-sss'], 'package_extras': ['libpam-runtime', 'libpam-sss', 'libnss-sss'],
}, },
'FreeBSD': { 'FreeBSD': {
'package_extra': False, 'package_extras': False,
}, },
'RedHat': { 'RedHat': {
'package_extra': ['authconfig'], 'package_extras': ['authconfig'],
} }
}, },
grain='os_family', grain='os_family',