This would then become...

{% if graphite_ldap_enabled is defined and graphite_ldap_enabled %}
USE_LDAP_AUTH = {{ graphite_ldap_enabled }}
LDAP_URI = "{{ graphite_ldap_uri }}"
LDAP_SEARCH_BASE = "{{ graphite_ldap_search_base }}"
LDAP_BASE_USER = "{{ graphite_ldap_base_user }}"
LDAP_BASE_PASS = "{{ graphite_ldap_base_pass }}"
LDAP_USER_QUERY = "{{ graphite_ldap_user_query }}"
{% else %}