Verified Commit 7e850ebe authored by Adrian Schollmeyer's avatar Adrian Schollmeyer
Browse files

template/generic-host: Correct email notification variable

parent 9ac9f260
...@@ -6,7 +6,7 @@ object Host "{{ vars.name }}" { ...@@ -6,7 +6,7 @@ object Host "{{ vars.name }}" {
{% if vars.address6 is defined %}address6 = "{{ vars.address6 }}"{% endif %} {% if vars.address6 is defined %}address6 = "{{ vars.address6 }}"{% endif %}
// === NOTIFICATIONS AND WEBACCESS === // === NOTIFICATIONS AND WEBACCESS ===
vars.notification.email = [] vars.notification.mail = []
vars.notification.xmpp = [] vars.notification.xmpp = []
vars.notification.sms = [] vars.notification.sms = []
vars.notification.webaccess = [] vars.notification.webaccess = []
...@@ -14,7 +14,7 @@ object Host "{{ vars.name }}" { ...@@ -14,7 +14,7 @@ object Host "{{ vars.name }}" {
// Contacts from NetBox inventory // Contacts from NetBox inventory
// Additional contacts may be added manually in -post // Additional contacts may be added manually in -post
{%- for contact in vars.email_notifications %} {%- for contact in vars.email_notifications %}
vars.notification.email += [ "{{ contact }}" ]{% endfor %} vars.notification.mail += [ "{{ contact }}" ]{% endfor %}
{%- for contact in vars.xmpp_notifications %} {%- for contact in vars.xmpp_notifications %}
vars.notification.xmpp += [ "{{ contact }}" ]{% endfor %} vars.notification.xmpp += [ "{{ contact }}" ]{% endfor %}
{%- for contact in vars.webaccess %} {%- for contact in vars.webaccess %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment