bootstrap.sls 450 B

123456789101112131415
  1. #
  2. # Install and configure configured network suite, configure links and install
  3. # /etc/network/interfaces but do not reload the interafces.
  4. #
  5. # To be called from pressed
  6. #
  7. # Which networ suite to configure?
  8. {% set default_suite = salt['pillar.get']('network:suite', 'ifupdown2') %}
  9. {% set suite = salt['pillar.get']('nodes:' ~ grains['id'] ~ ':network:suite', default_suite) %}
  10. include:
  11. - network.link
  12. - network.{{ suite }}
  13. - network.interfaces