浏览代码

Use root mail address from pillar.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 5 年之前
父节点
当前提交
6f6ffd87ad
共有 2 个文件被更改,包括 2 次插入1 次删除
  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 %}