blob: 79847c2dcdaa8cef9676f8226a55149fc8ec1dc9 [file] [log] [blame]
Filip Pytlounf5383a42015-10-06 16:28:32 +02001{% set system = salt['grains.filter_by']({
2 'Arch': {
3 'pkgs': ['sudo', 'vim', 'wget'],
4 'utc': true,
5 'user': {},
6 'group': {},
7 'job': {},
Filip Pytlound0a29e72015-11-30 15:23:34 +01008 'limit': {},
Filip Pytlounc49445a2016-04-04 14:23:20 +02009 'locale': {},
Filip Pytloune874dfb2016-01-22 16:57:34 +010010 'motd': {},
Filip Pytlounf5383a42015-10-06 16:28:32 +020011 'repo': {},
12 'package': {},
Bruno Binet69a9d8d2017-02-16 22:34:32 +010013 'autoupdates': {
14 'enabled': False,
15 'pkgs': []
16 },
Filip Pytlounf5383a42015-10-06 16:28:32 +020017 'selinux': 'permissive',
18 'ca_certs_dir': '/usr/local/share/ca-certificates',
Filip Pytloun7589acd2016-02-15 16:29:01 +010019 'doc_validity_pkgs': ['python-yaml'],
Filip Pytlounf5383a42015-10-06 16:28:32 +020020 },
21 'Debian': {
Éric Lemoine1c397442016-11-03 10:54:14 +010022 'pkgs': ['python-apt','vim-nox', 'apt-transport-https', 'libmnl0'],
Filip Pytlounf5383a42015-10-06 16:28:32 +020023 'utc': true,
24 'user': {},
25 'group': {},
26 'job': {},
Filip Pytlound0a29e72015-11-30 15:23:34 +010027 'limit': {},
Filip Pytlounc49445a2016-04-04 14:23:20 +020028 'locale': {},
Filip Pytloune874dfb2016-01-22 16:57:34 +010029 'motd': {},
Filip Pytlounf5383a42015-10-06 16:28:32 +020030 'repo': {},
31 'package': {},
Bruno Binet69a9d8d2017-02-16 22:34:32 +010032 'autoupdates': {
33 'enabled': False,
34 'pkgs': ['unattended-upgrades']
35 },
Filip Pytlounf5383a42015-10-06 16:28:32 +020036 'selinux': 'permissive',
37 'ca_certs_dir': '/usr/local/share/ca-certificates',
Filip Pytloun7589acd2016-02-15 16:29:01 +010038 'doc_validity_pkgs': ['python-yaml'],
Filip Pytlounf5383a42015-10-06 16:28:32 +020039 },
40 'RedHat': {
41 'pkgs': ['policycoreutils', 'policycoreutils-python', 'vim-enhanced', 'telnet', 'wget'],
42 'utc': true,
43 'user': {},
44 'group': {},
45 'job': {},
Filip Pytlound0a29e72015-11-30 15:23:34 +010046 'limit': {},
Filip Pytlounc49445a2016-04-04 14:23:20 +020047 'locale': {},
Filip Pytloune874dfb2016-01-22 16:57:34 +010048 'motd': {},
Filip Pytlounf5383a42015-10-06 16:28:32 +020049 'repo': {},
50 'package': {},
Bruno Binet69a9d8d2017-02-16 22:34:32 +010051 'autoupdates': {
52 'enabled': False,
53 'pkgs': []
54 },
Filip Pytlounf5383a42015-10-06 16:28:32 +020055 'selinux': 'permissive',
56 'ca_certs_dir': '/usr/local/share/ca-certificates',
Filip Pytloun7589acd2016-02-15 16:29:01 +010057 'doc_validity_pkgs': ['PyYAML'],
Filip Pytlounf5383a42015-10-06 16:28:32 +020058 },
59}, grain='os_family', merge=salt['pillar.get']('linux:system')) %}
60
61{# 'network_name', #}
62
63{% set interface_params = [
64 'gateway',
65 'mtu',
66 'network',
67 'broadcast',
68 'master',
69 'miimon',
Jakub Pavlikfc60eb02017-01-03 11:58:12 +010070 'ovs_ports',
71 'ovs_bridge',
Filip Pytlounf5383a42015-10-06 16:28:32 +020072 'mode',
Jakub Pavlikfc60eb02017-01-03 11:58:12 +010073 'port_type',
74 'peer',
Filip Pytlounf5383a42015-10-06 16:28:32 +020075 'lacp-rate',
76 'dns-search',
77 'up_cmds',
78 'pre_up_cmds',
79 'post_up_cmds',
80 'down_cmds',
81 'pre_down_cmds',
82 'post_down_cmds',
Pavel Cizinsky110e5742016-07-12 21:23:46 +020083 'maxwait',
84 'stp',
Jakub Pavlik4ad86e02016-07-12 21:44:31 +020085 'gro',
Petr Michalecf0a5fe42016-10-24 21:08:23 +020086 'lacp_rate',
87 'ad_select',
88 'downdelay',
89 'updelay',
Petr Michalec88242402016-10-27 09:00:09 +020090 'hashing-algorithm',
Filip Pytlounf5383a42015-10-06 16:28:32 +020091] %}
92
93{% set network = salt['grains.filter_by']({
94 'Arch': {
95 'pkgs': ['wpa_supplicant', 'dhclient', 'wireless_tools'],
96 'bridge_pkgs': ['bridge-utils'],
97 'ovs_pkgs': ['openvswitch-switch'],
98 'hostname_file': '/etc/hostname',
99 'network_manager': False,
100 'interface': {},
101 'interface_params': interface_params,
102 'bridge': 'none',
103 'proxy': {
104 'host': 'none',
105 },
106 'host': {},
107 },
108 'Debian': {
109 'hostname_file': '/etc/hostname',
110 'bridge_pkgs': ['bridge-utils'],
Ales Komarek6086f632016-11-23 13:28:13 +0100111 'ovs_pkgs': ['openvswitch-switch', 'bridge-utils'],
Filip Pytlounf5383a42015-10-06 16:28:32 +0200112 'network_manager': False,
113 'interface': {},
114 'interface_params': interface_params,
115 'bridge': 'none',
116 'proxy': {
117 'host': 'none',
118 },
119 'host': {},
120 },
121 'RedHat': {
122 'bridge_pkgs': ['bridge-utils'],
Ales Komarek6086f632016-11-23 13:28:13 +0100123 'ovs_pkgs': ['openvswitch-switch', 'bridge-utils'],
Filip Pytlounf5383a42015-10-06 16:28:32 +0200124 'hostname_file': '/etc/sysconfig/network',
125 'network_manager': False,
126 'interface': {},
127 'interface_params': interface_params,
128 'bridge': 'none',
129 'proxy': {
130 'host': 'none',
131 },
132 'host': {},
133 },
134}, grain='os_family', merge=salt['pillar.get']('linux:network')) %}
135
136{% set storage = salt['grains.filter_by']({
137 'Arch': {
138 'mount': {},
vmikes37837f32017-01-09 10:19:51 +0100139 'swap': {},
Filip Pytlounc8a001a2015-12-15 14:09:19 +0100140 'lvm': {},
Simon Pasquier375001e2017-01-26 13:22:33 +0100141 'loopback': {},
Ales Komareka634f4b2016-10-02 13:11:04 +0200142 'multipath': {
143 'enabled': False,
144 'pkgs': ['multipath-tools', 'multipath-tools-boot'],
145 'service': ''
146 },
Filip Pytlounf5383a42015-10-06 16:28:32 +0200147 },
148 'Debian': {
149 'mount': {},
vmikes37837f32017-01-09 10:19:51 +0100150 'swap': {},
Filip Pytlounc8a001a2015-12-15 14:09:19 +0100151 'lvm': {},
Simon Pasquier375001e2017-01-26 13:22:33 +0100152 'loopback': {},
Ales Komareka634f4b2016-10-02 13:11:04 +0200153 'multipath': {
154 'enabled': False,
155 'pkgs': ['multipath-tools', 'multipath-tools-boot'],
156 'service': 'multipath-tools'
157 },
Filip Pytlouneaef6ec2015-12-15 18:39:28 +0100158 'lvm_pkgs': ['lvm2'],
Filip Pytlounf5383a42015-10-06 16:28:32 +0200159 },
160 'RedHat': {
161 'mount': {},
vmikes37837f32017-01-09 10:19:51 +0100162 'swap': {},
Filip Pytlounc8a001a2015-12-15 14:09:19 +0100163 'lvm': {},
Simon Pasquier375001e2017-01-26 13:22:33 +0100164 'loopback': {},
Ales Komareka634f4b2016-10-02 13:11:04 +0200165 'multipath': {
166 'enabled': False,
167 'pkgs': [],
168 'service': 'multipath'
169 },
Filip Pytlounf5383a42015-10-06 16:28:32 +0200170 },
171}, grain='os_family', merge=salt['pillar.get']('linux:storage')) %}