Added package installed for FreeBSD
This commit is contained in:
parent
b818eb706b
commit
378229a359
@ -1,4 +1,6 @@
|
|||||||
nsswitch:
|
nsswitch:
|
||||||
|
package_name: False
|
||||||
config_path: /etc/nsswitch.conf
|
config_path: /etc/nsswitch.conf
|
||||||
config_mode: '0644'
|
config_mode: '0644'
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,13 @@
|
|||||||
{% from "nsswitch/map.jinja" import nsswitch_settings as nsswitch with context %}
|
{% from "nsswitch/map.jinja" import nsswitch_settings as nsswitch with context %}
|
||||||
|
|
||||||
|
{% if nsswitch.package_name %}
|
||||||
|
nsswitch_package:
|
||||||
|
pkg.installed:
|
||||||
|
- name: {{ nsswitch.package_name }}
|
||||||
|
- require_in:
|
||||||
|
- file: nsswitch_config
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
nsswitch_config:
|
nsswitch_config:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: {{ nsswitch.config_path }}
|
- name: {{ nsswitch.config_path }}
|
||||||
|
@ -14,7 +14,8 @@ that differ from whats in defaults.yaml
|
|||||||
'config_path': '/etc/nsswitch.conf',
|
'config_path': '/etc/nsswitch.conf',
|
||||||
},
|
},
|
||||||
'FreeBSD': {
|
'FreeBSD': {
|
||||||
'config_path': '/etc/nsswitch.conf',
|
'package_name': 'nss'
|
||||||
|
'config_path': '/usr/local/etc/nsswitch.conf',
|
||||||
},
|
},
|
||||||
'RedHat': {
|
'RedHat': {
|
||||||
'config_path': '/etc/nsswitch.conf',
|
'config_path': '/etc/nsswitch.conf',
|
||||||
|
Loading…
Reference in New Issue
Block a user