Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update: properly use pam_config from pillars #3

Merged
merged 1 commit into from
Aug 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pam/update.sls
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{% from "pam/map.jinja" import pam with context %}
{% set pam_config = salt['pillar.get']('pam:pam_config', pam.pam_config) %}

{% if grains.os_family == 'Debian' %}
pam-auth-update:
cmd.run:
- name: DEBIAN_FRONTEND=noninteractive pam-auth-update --force
{% endif %}

{% for file_name, config in pam['pam_config'].items() %}
{% for file_name, config in pam_config.items() %}
/usr/share/pam-configs/{{ file_name }}:
file.managed:
- source: salt://pam/files/pam-config.jinja
Expand Down