Created
September 11, 2018 00:43
-
-
Save metabsd/6e618008bc96856155f516371c55ed90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for files in [ | |
{'cis': '5.3.3 Ensure password reuse is limited (Scored)', 'name': 'pwquality'}, | |
{'cis': '5.3.4 Ensure password hashing algorithm is SHA-512 (Scored)', 'name': 'unix'} | |
] | |
%} | |
{{ files.cis }}: | |
file.managed: | |
- source: salt://files/pam/{{files.name}} | |
- name: /usr/share/pam-configs/{{files.name}} | |
- mode: 644 | |
pam-auth-update {{ file.cis }}: | |
cmd.run: | |
- name: DEBIAN_FRONTEND=noninteractive pam-auth-update --force | |
- onchanges_in: | |
- file: /usr/share/pam-configs/{{files.name}} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the result