-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sls
40 lines (34 loc) · 836 Bytes
/
init.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{% if grains['os_family'] == 'RedHat' %}
{% if grains['osrelease'].split('.')[0] == '6' %}
/etc/pam.d/password-auth:
file.symlink:
- force: True
- target: /etc/pam.d/password-auth-ac
/etc/pam.d/system-auth:
file.symlink:
- force: True
- target: /etc/pam.d/system-auth-ac
pamd_password_ac_file:
file.managed:
- name: /etc/pam.d/password-auth-ac
- source: salt://pam/password-auth-ac
- uid: 0
- gid: 0
- mode: 0644
pamd_system_ac_file:
file.managed:
- name: /etc/pam.d/system-auth-ac
- source: salt://pam/system-auth-ac
- uid: 0
- gid: 0
- mode: 0644
{% endif %}
{% elif grains['os_family'] == 'FreeBSD'%}
pamd_sshd_file:
file.managed:
- name: /etc/pam.d/sshd
- source: salt://pam/freebsd-pamd-sshd
- uid: 0
- gid: 0
- mode: 0644
{% endif %}