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
Merge pull request #9 from jhoblitt/fix_template_warnings

update erb template to remove variable scope deprecation warnings