{%- from "linux/map.jinja" import ldap with context -%} # /etc/nsswitch.conf # # 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. passwd: compat{%- if ldap.enabled %} ldap{%- endif %} group: compat{%- if ldap.enabled %} ldap{%- endif %} shadow: compat{%- if ldap.enabled %} ldap{%- endif %} gshadow: files hosts: files dns networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis