update erb template to remove variable scope deprecation warnings

Example of the warnings:

Warning: Variable access via 'ensure_ldap' is deprecated. Use
'@ensure_ldap' instead.
template[<foo>/nsswitch/templates/nsswitch.conf.erb]:4