base.sls 564 B

1234567891011121314151617181920212223242526
  1. #
  2. # network.interface.base
  3. #
  4. # Install required packets and write /etc/network/interfaces but don't apply it!
  5. ifupdown2:
  6. pkg.installed
  7. # ifupdown2 configuration
  8. /etc/network/ifupdown2/ifupdown2.conf:
  9. file.managed:
  10. - source:
  11. - salt://network/ifupdown2.conf.{{ grains['oscodename'] }}
  12. - salt://network/ifupdown2.conf
  13. - require:
  14. - pkg: ifupdown2
  15. # Write network configuration
  16. /etc/network/interfaces:
  17. file.managed:
  18. - template: jinja
  19. - source: salt://network/interfaces/interfaces.tmpl
  20. - require:
  21. - pkg: ifupdown2