Browse Source

Use root mail address from pillar.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 5 years ago
parent
commit
6f6ffd87ad
2 changed files with 2 additions and 1 deletions
  1. 1 1
      network/interfaces/ff_fix_default_route.cron
  2. 1 0
      network/interfaces/init.sls

+ 1 - 1
network/interfaces/ff_fix_default_route.cron

@@ -3,6 +3,6 @@
 #
 SHELL=/bin/bash
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
-MAILTO=ops@ffho.net
+MAILTO={{ salt['pillar.get']('globals:ops_mail') }}
 
 * * * * *       root    /usr/local/sbin/ff_fix_default_route

+ 1 - 0
network/interfaces/init.sls

@@ -73,6 +73,7 @@ ifreload:
 {% if True in vrf %}
   file.managed:
     - source: salt://network/interfaces/ff_fix_default_route.cron
+    - template: jinja
 {% else %}
   file.absent
 {% endif %}