Commit 4cbfe746 authored by Andreas Schmidt's avatar Andreas Schmidt

Move network config to separate state. Add eth0 network.

parent b9f50666
auto eth0
iface eth0 inet dhcp
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
network-manager:
pkg.purged
network_interfaces:
file.managed:
- name: /etc/network/interfaces
- source: salt://network/files/interfaces
network_interface_eth0:
file.managed:
- name: /etc/network/interfaces.d/eth0
- source: salt://network/files/eth0
include:
- network
wpasupplicant:
pkg.installed
network_interfaces:
network_interface_wlan0:
file.managed:
- name: /etc/network/interfaces.d/wlan0
- source: salt://common/files/wlan0
- source: salt://network/files/wlan0
wpa_supplication.conf:
file.managed:
- name: /etc/wpa_supplicant/wpa_supplicant.conf
- source: salt://common/files/wpa_supplicant.conf
- source: salt://network/files/wpa_supplicant.conf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment