|
@@ -2,33 +2,8 @@
|
|
|
# /etc/network/interfaces
|
|
|
#
|
|
|
|
|
|
-ifupdown2:
|
|
|
- pkg.installed
|
|
|
-
|
|
|
-# Require for some functions of ffho_net module, so make sure they are present.
|
|
|
-# Used by functions for bird and dhcp-server for example.
|
|
|
-python-ipcalc:
|
|
|
- pkg.installed
|
|
|
-
|
|
|
-# ifupdown2 configuration
|
|
|
-/etc/network/ifupdown2/ifupdown2.conf:
|
|
|
- file.managed:
|
|
|
- - source:
|
|
|
- - salt://network/ifupdown2.conf.{{ grains['oscodename'] }}
|
|
|
- - salt://network/ifupdown2.conf
|
|
|
- - require:
|
|
|
- - pkg: ifupdown2
|
|
|
- - pkg: python-ipcalc
|
|
|
-
|
|
|
-
|
|
|
-# Write network configuration
|
|
|
-/etc/network/interfaces:
|
|
|
- file.managed:
|
|
|
- - template: jinja
|
|
|
- - source: salt://network/interfaces/interfaces.tmpl
|
|
|
- - require:
|
|
|
- - pkg: ifupdown2
|
|
|
-
|
|
|
+include:
|
|
|
+ - network.interfaces.base
|
|
|
|
|
|
# Reload interface configuration if neccessary
|
|
|
ifreload:
|