interfaces.j2 683 B

123456789101112131415161718192021222324252627
  1. # This file describes the network interfaces available on your system
  2. # and how to activate them. For more information, see interfaces(5).
  3. #
  4. # This file is generated by ansible
  5. #
  6. ## Host Interfaces
  7. auto lo
  8. iface lo inet loopback
  9. {%for interface in supernode_interfaces %}
  10. {% if interface.auto is defined and interface.auto %}
  11. auto {{interface.name}}
  12. {% endif %}
  13. {% if interface.hotplug is defined and interface.hotplug %}
  14. allow-hotplug {{interface.name}}
  15. {% endif %}
  16. iface {{interface.name}} {{interface.proto}} {{interface.type}}
  17. {% if interface.config is defined %}
  18. {% for config in interface.config %}
  19. {{config.key}} {{config.value}}
  20. {% endfor %}
  21. {% endif %}
  22. {% endfor %}