|
- {% set system = salt['grains.filter_by']({
- 'Arch': {
- 'pkgs': ['sudo', 'vim', 'wget'],
- 'utc': true,
- 'user': {},
- 'group': {},
- 'job': {},
- 'limit': {},
- 'locale': {},
- 'motd': {},
- 'env': {},
- 'profile': {},
- 'proxy': {},
- 'repo': {},
- 'package': {},
- 'autoupdates': {
- 'pkgs': []
- },
- 'selinux': 'permissive',
- 'ca_certs_dir': '/usr/local/share/ca-certificates',
- 'doc_validity_pkgs': ['python-yaml'],
- },
- 'Debian': {
- 'pkgs': ['python-apt', 'apt-transport-https', 'libmnl0'],
- 'utc': true,
- 'user': {},
- 'group': {},
- 'job': {},
- 'limit': {},
- 'locale': {},
- 'motd': {},
- 'env': {},
- 'profile': {},
- 'proxy': {},
- 'repo': {},
- 'package': {},
- 'autoupdates': {
- 'pkgs': ['unattended-upgrades']
- },
- 'selinux': 'permissive',
- 'ca_certs_dir': '/usr/local/share/ca-certificates',
- 'doc_validity_pkgs': ['python-yaml'],
- },
- 'RedHat': {
- 'pkgs': ['policycoreutils', 'policycoreutils-python', 'telnet', 'wget'],
- 'utc': true,
- 'user': {},
- 'group': {},
- 'job': {},
- 'limit': {},
- 'locale': {},
- 'motd': {},
- 'env': {},
- 'profile': {},
- 'proxy': {},
- 'repo': {},
- 'package': {},
- 'autoupdates': {
- 'pkgs': []
- },
- 'selinux': 'permissive',
- 'ca_certs_dir': '/usr/local/share/ca-certificates',
- 'doc_validity_pkgs': ['PyYAML'],
- },
- }, grain='os_family', merge=salt['pillar.get']('linux:system')) %}
-
- {# 'network_name', #}
-
- {% set interface_params = [
- 'gateway',
- 'mtu',
- 'network',
- 'broadcast',
- 'master',
- 'miimon',
- 'ovs_ports',
- 'ovs_bridge',
- 'mode',
- 'port_type',
- 'peer',
- 'lacp-rate',
- 'dns-search',
- 'up_cmds',
- 'pre_up_cmds',
- 'post_up_cmds',
- 'down_cmds',
- 'pre_down_cmds',
- 'post_down_cmds',
- 'maxwait',
- 'stp',
- 'gro',
- 'lacp_rate',
- 'ad_select',
- 'downdelay',
- 'updelay',
- 'hashing-algorithm',
- ] %}
-
- {% set network = salt['grains.filter_by']({
- 'Arch': {
- 'pkgs': ['wpa_supplicant', 'dhclient', 'wireless_tools'],
- 'bridge_pkgs': ['bridge-utils'],
- 'ovs_pkgs': ['openvswitch-switch'],
- 'hostname_file': '/etc/hostname',
- 'network_manager': False,
- 'interface': {},
- 'interface_params': interface_params,
- 'bridge': 'none',
- 'proxy': {
- 'host': 'none',
- },
- 'host': {},
- },
- 'Debian': {
- 'hostname_file': '/etc/hostname',
- 'bridge_pkgs': ['bridge-utils'],
- 'ovs_pkgs': ['openvswitch-switch', 'bridge-utils'],
- 'dpdk_pkgs': ['dpdk', 'dpdk-dev', 'dpdk-dkms', 'dpdk-igb-uio-dkms', 'dpdk-rte-kni-dkms'],
- 'network_manager': False,
- 'interface': {},
- 'interface_params': interface_params,
- 'bridge': 'none',
- 'proxy': {
- 'host': 'none'
- },
- 'host': {},
- },
- 'RedHat': {
- 'bridge_pkgs': ['bridge-utils'],
- 'ovs_pkgs': ['openvswitch-switch', 'bridge-utils'],
- 'hostname_file': '/etc/sysconfig/network',
- 'network_manager': False,
- 'interface': {},
- 'interface_params': interface_params,
- 'bridge': 'none',
- 'proxy': {
- 'host': 'none'
- },
- 'host': {},
- },
- }, grain='os_family', merge=salt['pillar.get']('linux:network')) %}
-
- {% set storage = salt['grains.filter_by']({
- 'Arch': {
- 'mount': {},
- 'swap': {},
- 'lvm': {},
- 'loopback': {},
- 'nfs': {
- 'pkgs': ['nfs-utils']
- },
- 'multipath': {
- 'enabled': False,
- 'pkgs': ['multipath-tools', 'multipath-tools-boot'],
- 'service': ''
- },
- },
- 'Debian': {
- 'mount': {},
- 'swap': {},
- 'lvm': {},
- 'loopback': {},
- 'nfs': {
- 'pkgs': ['nfs-common']
- },
- 'multipath': {
- 'enabled': False,
- 'pkgs': ['multipath-tools', 'multipath-tools-boot'],
- 'service': 'multipath-tools'
- },
- 'lvm_pkgs': ['lvm2'],
- },
- 'RedHat': {
- 'mount': {},
- 'swap': {},
- 'lvm': {},
- 'loopback': {},
- 'nfs': {
- 'pkgs': ['nfs-utils']
- },
- 'multipath': {
- 'enabled': False,
- 'pkgs': [],
- 'service': 'multipath'
- },
- },
- }, grain='os_family', merge=salt['pillar.get']('linux:storage')) %}
|