Skip to content

Commit

Permalink
Removed tls_cacertfile. Changed dashes to underscores.
Browse files Browse the repository at this point in the history
  • Loading branch information
fintanmm committed Sep 30, 2015
1 parent 773877b commit 73fd1f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
18 changes: 5 additions & 13 deletions pam/ldap.sls
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
{% from "pam-ldap/map.jinja" import pam with context %}
tls_cacertfile:
file.managed:
- source: salt://pam-ldap/files/cert
- user: root
- group: root
- mode: 640
{% from "pam/map.jinja" import pam with context %}
ldap:
pkg:
- installed
- name: {{ pam.ldap }}
pkg.installed:
- name: {{ pam.ldap_pkg }}
{{ pam.config }}:
file.managed:
- source: salt://pam-ldap/files/ldap.conf
- source: salt://pam/files/ldap.conf
- user: root
- group: root
- mode: 644
ldap_conf:
file.append:
- name: {{ pam.ldap-config }}
- name: {{ pam.ldap_config }}
- text:
- host {{ salt['pillar.get']('pam:ldap:host') }}
{% if salt['pillar.get']('pam:ldap:port') %}
Expand Down
8 changes: 4 additions & 4 deletions pam/map.jinja
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{% set pam = salt['grains.filter_by']({
'Ubuntu': {
'ldap': 'ldap-auth-client',
'ldap_pkg': 'ldap-auth-client',
'nsd': 'nscd',
'ldap-config': '/etc/ldap.conf',
'ldap_config': '/etc/ldap.conf',
},
'Debian': {
'ldap': 'libpam-ldap',
'ldap-config': '/etc/ldap.conf',
'ldap_pkg': 'libpam-ldap',
'ldap_config': '/etc/ldap.conf',
},
}, merge=salt['pillar.get']('pam:lookup')) %}

0 comments on commit 73fd1f5

Please sign in to comment.