blob: fac2916b65958cc8b82fcd141972af62a900453c [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': {},
13 'selinux': 'permissive',
14 'ca_certs_dir': '/usr/local/share/ca-certificates',
Filip Pytloun7589acd2016-02-15 16:29:01 +010015 'doc_validity_pkgs': ['python-yaml'],
Filip Pytlounf5383a42015-10-06 16:28:32 +020016 },
17 'Debian': {
Filip Pytlouna38a3cc2016-09-14 11:44:30 +020018 'pkgs': ['python-apt','vim-nox', 'apt-transport-https'],
Filip Pytlounf5383a42015-10-06 16:28:32 +020019 'utc': true,
20 'user': {},
21 'group': {},
22 'job': {},
Filip Pytlound0a29e72015-11-30 15:23:34 +010023 'limit': {},
Filip Pytlounc49445a2016-04-04 14:23:20 +020024 'locale': {},
Filip Pytloune874dfb2016-01-22 16:57:34 +010025 'motd': {},
Filip Pytlounf5383a42015-10-06 16:28:32 +020026 'repo': {},
27 'package': {},
28 'selinux': 'permissive',
29 'ca_certs_dir': '/usr/local/share/ca-certificates',
Filip Pytloun7589acd2016-02-15 16:29:01 +010030 'doc_validity_pkgs': ['python-yaml'],
Filip Pytlounf5383a42015-10-06 16:28:32 +020031 },
32 'RedHat': {
33 'pkgs': ['policycoreutils', 'policycoreutils-python', 'vim-enhanced', 'telnet', 'wget'],
34 'utc': true,
35 'user': {},
36 'group': {},
37 'job': {},
Filip Pytlound0a29e72015-11-30 15:23:34 +010038 'limit': {},
Filip Pytlounc49445a2016-04-04 14:23:20 +020039 'locale': {},
Filip Pytloune874dfb2016-01-22 16:57:34 +010040 'motd': {},
Filip Pytlounf5383a42015-10-06 16:28:32 +020041 'repo': {},
42 'package': {},
43 'selinux': 'permissive',
44 'ca_certs_dir': '/usr/local/share/ca-certificates',
Filip Pytloun7589acd2016-02-15 16:29:01 +010045 'doc_validity_pkgs': ['PyYAML'],
Filip Pytlounf5383a42015-10-06 16:28:32 +020046 },
47}, grain='os_family', merge=salt['pillar.get']('linux:system')) %}
48
49{# 'network_name', #}
50
51{% set interface_params = [
52 'gateway',
53 'mtu',
54 'network',
55 'broadcast',
56 'master',
57 'miimon',
58 'mode',
59 'lacp-rate',
60 'dns-search',
61 'up_cmds',
62 'pre_up_cmds',
63 'post_up_cmds',
64 'down_cmds',
65 'pre_down_cmds',
66 'post_down_cmds',
Pavel Cizinsky110e5742016-07-12 21:23:46 +020067 'maxwait',
68 'stp',
Jakub Pavlik4ad86e02016-07-12 21:44:31 +020069 'gro',
Petr Michalecf0a5fe42016-10-24 21:08:23 +020070 'lacp_rate',
71 'ad_select',
72 'downdelay',
73 'updelay',
Petr Michalec88242402016-10-27 09:00:09 +020074 'hashing-algorithm',
Filip Pytlounf5383a42015-10-06 16:28:32 +020075] %}
76
77{% set network = salt['grains.filter_by']({
78 'Arch': {
79 'pkgs': ['wpa_supplicant', 'dhclient', 'wireless_tools'],
80 'bridge_pkgs': ['bridge-utils'],
81 'ovs_pkgs': ['openvswitch-switch'],
82 'hostname_file': '/etc/hostname',
83 'network_manager': False,
84 'interface': {},
85 'interface_params': interface_params,
86 'bridge': 'none',
87 'proxy': {
88 'host': 'none',
89 },
90 'host': {},
91 },
92 'Debian': {
93 'hostname_file': '/etc/hostname',
94 'bridge_pkgs': ['bridge-utils'],
95 'ovs_pkgs': ['openvswitch-switch'],
96 'network_manager': False,
97 'interface': {},
98 'interface_params': interface_params,
99 'bridge': 'none',
100 'proxy': {
101 'host': 'none',
102 },
103 'host': {},
104 },
105 'RedHat': {
106 'bridge_pkgs': ['bridge-utils'],
107 'ovs_pkgs': ['openvswitch-switch'],
108 'hostname_file': '/etc/sysconfig/network',
109 'network_manager': False,
110 'interface': {},
111 'interface_params': interface_params,
112 'bridge': 'none',
113 'proxy': {
114 'host': 'none',
115 },
116 'host': {},
117 },
118}, grain='os_family', merge=salt['pillar.get']('linux:network')) %}
119
120{% set storage = salt['grains.filter_by']({
121 'Arch': {
122 'mount': {},
123 'swap': {},
Filip Pytlounc8a001a2015-12-15 14:09:19 +0100124 'lvm': {},
Ales Komareka634f4b2016-10-02 13:11:04 +0200125 'multipath': {
126 'enabled': False,
127 'pkgs': ['multipath-tools', 'multipath-tools-boot'],
128 'service': ''
129 },
Filip Pytlounf5383a42015-10-06 16:28:32 +0200130 },
131 'Debian': {
132 'mount': {},
133 'swap': {},
Filip Pytlounc8a001a2015-12-15 14:09:19 +0100134 'lvm': {},
Ales Komareka634f4b2016-10-02 13:11:04 +0200135 'multipath': {
136 'enabled': False,
137 'pkgs': ['multipath-tools', 'multipath-tools-boot'],
138 'service': 'multipath-tools'
139 },
Filip Pytlouneaef6ec2015-12-15 18:39:28 +0100140 'lvm_pkgs': ['lvm2'],
Filip Pytlounf5383a42015-10-06 16:28:32 +0200141 },
142 'RedHat': {
143 'mount': {},
144 'swap': {},
Filip Pytlounc8a001a2015-12-15 14:09:19 +0100145 'lvm': {},
Ales Komareka634f4b2016-10-02 13:11:04 +0200146 'multipath': {
147 'enabled': False,
148 'pkgs': [],
149 'service': 'multipath'
150 },
Filip Pytlounf5383a42015-10-06 16:28:32 +0200151 },
152}, grain='os_family', merge=salt['pillar.get']('linux:storage')) %}