1234567891011121314151617181920212223242526 |
- #
- # Networking / link
- #
- {% if grains['oscodename'] == 'jessie' %}
- # Udev rules
- /etc/udev/rules.d/42-ffho-net.rules:
- file.managed:
- - template: jinja
- - source: salt://network/udev-rules.tmpl
- {% endif %}
- # Systemd link files?
- {% if grains['oscodename'] == 'stretch' %}
- {% for iface, iface_config in salt['pillar.get']('nodes:' ~ grains['id'] ~ ':ifaces', {}).items ()|sort %}
- {% if '_udev_mac' in iface_config or 'mac' in iface_config %}
- /etc/systemd/network/42-{{ iface }}.link:
- file.managed:
- - source: salt://network/systemd-link.tmpl
- - template: jinja
- interface: {{ iface }}
- iface_config: {{ iface_config }}
- desc: {{ iface_config.get ('desc', '') }}
- {% endif %}
- {% endfor %}
- {% endif %}
|