mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 18:35:18 +00:00
31 lines
834 B
Plaintext
31 lines
834 B
Plaintext
{% set pam_ver = salt['pillar.get']('pam:version', '>=1.3.0-r2') %}
|
|
{% set pam_use = salt['pillar.get']('pam:use', ['-audit','-berkdb','cracklib','filecaps']) %}
|
|
{% set pambase_use = salt['pillar.get']('pam:pambase:use', ['cracklib','nullok','sha512']) %}
|
|
{% set libs_packaged = salt['pillar.get']('libs:packaged', False) %}
|
|
include:
|
|
- lib.cracklib
|
|
|
|
sys-libs/pam:
|
|
pkg.installed:
|
|
- version: "{{ pam_ver }}[{{ ','.join(pam_use) }}]"
|
|
{% if libs_packaged %}
|
|
- binhost: force
|
|
{% endif %}
|
|
- require:
|
|
- pkg: sys-libs/cracklib
|
|
|
|
sys-auth/pambase:
|
|
pkg.latest:
|
|
- version: "[{{ ','.join(pambase_use) }}]"
|
|
{% if libs_packaged %}
|
|
- binhost: force
|
|
{% endif %}
|
|
- require:
|
|
- pkg: sys-libs/cracklib
|
|
- pkg: sys-libs/pam
|
|
|
|
virtual/pam:
|
|
pkg.latest:
|
|
- require:
|
|
- pkg: sys-libs/pam
|