Added nsswitch configuration

This commit is contained in:
Gregory Ballantine
2017-05-23 15:17:51 -04:00
parent 52057edc8a
commit d38292e590
4 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,18 @@
{% from "nsswitch/map.jinja" import nsswitch_settings as nsswitch with context -%}
# /etc/nsswitch.conf
#
# Managed by Salt
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
{%- for key, value in nsswitch.config.iteritems() %}
{%- if value is list %}
{{ key }}: {{ v for v in value }}
{%- else %}
{{ key }}: {{ value }}
{%- endif %}
{%- endfor %}