|
|
|
|
|
|
|
|
{% set network = salt['grains.filter_by']({ |
|
|
{% set network = salt['grains.filter_by']({ |
|
|
'Arch': { |
|
|
'Arch': { |
|
|
'pkgs': ['wpa_supplicant', 'dhclient', 'wireless_tools', 'ifenslave'], |
|
|
'pkgs': ['wpa_supplicant', 'dhclient', 'wireless_tools', 'ifenslave'], |
|
|
'bridge_pkgs': ['bridge-utils'], |
|
|
|
|
|
'ovs_pkgs': ['openvswitch-switch'], |
|
|
|
|
|
|
|
|
'bridge_pkgs': ['bridge-utils', 'vlan'], |
|
|
|
|
|
'ovs_pkgs': ['openvswitch-switch', 'vlan'], |
|
|
'hostname_file': '/etc/hostname', |
|
|
'hostname_file': '/etc/hostname', |
|
|
'network_manager': False, |
|
|
'network_manager': False, |
|
|
'systemd': {}, |
|
|
'systemd': {}, |
|
|
|
|
|
|
|
|
'Debian': { |
|
|
'Debian': { |
|
|
'pkgs': ['ifenslave'], |
|
|
'pkgs': ['ifenslave'], |
|
|
'hostname_file': '/etc/hostname', |
|
|
'hostname_file': '/etc/hostname', |
|
|
'bridge_pkgs': ['bridge-utils'], |
|
|
|
|
|
'ovs_pkgs': ['openvswitch-switch', 'bridge-utils'], |
|
|
|
|
|
|
|
|
'bridge_pkgs': ['bridge-utils', 'vlan'], |
|
|
|
|
|
'ovs_pkgs': ['openvswitch-switch', 'bridge-utils', 'vlan'], |
|
|
'dpdk_pkgs': ['dpdk', 'dpdk-dev', 'dpdk-igb-uio-dkms', 'dpdk-rte-kni-dkms', debian_headers.encode('utf8') ], |
|
|
'dpdk_pkgs': ['dpdk', 'dpdk-dev', 'dpdk-igb-uio-dkms', 'dpdk-rte-kni-dkms', debian_headers.encode('utf8') ], |
|
|
'network_manager': False, |
|
|
'network_manager': False, |
|
|
'systemd': {}, |
|
|
'systemd': {}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
'RedHat': { |
|
|
'RedHat': { |
|
|
'pkgs': ['iputils'], |
|
|
'pkgs': ['iputils'], |
|
|
'bridge_pkgs': ['bridge-utils'], |
|
|
|
|
|
'ovs_pkgs': ['openvswitch-switch', 'bridge-utils'], |
|
|
|
|
|
|
|
|
'bridge_pkgs': ['bridge-utils', 'vlan'], |
|
|
|
|
|
'ovs_pkgs': ['openvswitch-switch', 'bridge-utils', 'vlan'], |
|
|
'hostname_file': '/etc/sysconfig/network', |
|
|
'hostname_file': '/etc/sysconfig/network', |
|
|
'network_manager': False, |
|
|
'network_manager': False, |
|
|
'systemd': {}, |
|
|
'systemd': {}, |