Bechtoldt's Network Saltstack Formula
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!jinja|yaml
- # vim: sts=2 ts=2 sw=2 et ai
-
- #{% from "network/defaults.yaml" import rawmap with context %}
- {% set datamap = salt['pillar.get']('network') %}
- {% set routes = datamap.routes %}
-
- {% if salt['pillar.get']('network:routes', False) %}
-
- {% for r in routes %}
- {{ r.name }}:
- network.routes:
- - name: {{ r.name }}
- - routes:
- {% for n in r.networks %}
- - name: {{ n.name }}
- ipaddr: {{ n.ipaddr }}
- netmask: {{ n.netmask }}
- gateway: {{ n.gateway }}
- {% endfor %}
- {% endfor %}
-
- {% endif %}
|