Browse Source

snmpd: Use sysContact and r/o community from 'globals' pillar.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 5 years ago
parent
commit
a8e1b30230
1 changed files with 3 additions and 2 deletions
  1. 3 2
      snmpd/snmpd.conf

+ 3 - 2
snmpd/snmpd.conf

@@ -1,5 +1,6 @@
 {%- set node_config = salt['pillar.get'] ('nodes:' ~ grains['id']) %}
-{%- set ro_community = salt['pillar.get'] ('ffho:snmp:ro_community', "Configure ffho:snmp:ro_community in pillar...") %}
+{%- set ro_community = salt['pillar.get'] ('globals:snmp:ro_community', "Configure globals:snmp:ro_community in pillar...") %}
+{%- set sys_contact = salt['pillar.get'] ('globals:ops_mail', "Configure globals:ops_mail in pillar...") %}
 {%- set sys_location = node_config.get ('sysLocation', "Please fix sysLocation...") %}
 #
 # /etc/snmp/snmpd.conf (Salt managed)
@@ -21,7 +22,7 @@ rocommunity6 {{ ro_community }}	fdca:ffee:ff12:a251::161
 rocommunity6 {{ ro_community }}	2a03:2260:2342:a251::161
 
 sysLocation    {{ sys_location }}
-sysContact     ops@ffho.net
+sysContact     {{ sys_contact }}
 sysServices    72
 
 #