|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% set network = salt['grains.filter_by']({ |
|
|
{% set network = salt['grains.filter_by']({ |
|
|
'Arch': { |
|
|
'Arch': { |
|
|
'pkgs': ['wpa_supplicant', 'dhclient', 'wireless_tools'], |
|
|
|
|
|
|
|
|
'pkgs': ['wpa_supplicant', 'dhclient', 'wireless_tools', 'ifenslave'], |
|
|
'bridge_pkgs': ['bridge-utils'], |
|
|
'bridge_pkgs': ['bridge-utils'], |
|
|
'ovs_pkgs': ['openvswitch-switch'], |
|
|
'ovs_pkgs': ['openvswitch-switch'], |
|
|
'hostname_file': '/etc/hostname', |
|
|
'hostname_file': '/etc/hostname', |
|
|
|
|
|
|
|
|
'dhclient_config': '/etc/dhcp/dhclient.conf', |
|
|
'dhclient_config': '/etc/dhcp/dhclient.conf', |
|
|
}, |
|
|
}, |
|
|
'Debian': { |
|
|
'Debian': { |
|
|
|
|
|
'pkgs': ['ifenslave'], |
|
|
'hostname_file': '/etc/hostname', |
|
|
'hostname_file': '/etc/hostname', |
|
|
'bridge_pkgs': ['bridge-utils'], |
|
|
'bridge_pkgs': ['bridge-utils'], |
|
|
'ovs_pkgs': ['openvswitch-switch', 'bridge-utils'], |
|
|
'ovs_pkgs': ['openvswitch-switch', 'bridge-utils'], |
|
|
|
|
|
|
|
|
'dhclient_config': '/etc/dhcp/dhclient.conf', |
|
|
'dhclient_config': '/etc/dhcp/dhclient.conf', |
|
|
}, |
|
|
}, |
|
|
'RedHat': { |
|
|
'RedHat': { |
|
|
|
|
|
'pkgs': ['iputils'], |
|
|
'bridge_pkgs': ['bridge-utils'], |
|
|
'bridge_pkgs': ['bridge-utils'], |
|
|
'ovs_pkgs': ['openvswitch-switch', 'bridge-utils'], |
|
|
'ovs_pkgs': ['openvswitch-switch', 'bridge-utils'], |
|
|
'hostname_file': '/etc/sysconfig/network', |
|
|
'hostname_file': '/etc/sysconfig/network', |