blob: ec02ae6be777e07ba1ca4f622d15bd4caed2b3d4 [file] [log] [blame]
Dennis Dmitriev2a13a132016-11-04 00:56:23 +02001---
2aliases:
3 dynamic_addresses_pool:
4 - &pool_default !os_env POOL_DEFAULT, 172.16.10.0/24:24
5
6 default_interface_model:
7 - &interface_model !os_env INTERFACE_MODEL, virtio
8
9template:
10 devops_settings:
11 env_name: !os_env ENV_NAME, tcpcloud-mk22
12
13 address_pools:
14 public-pool01:
15 net: 172.16.10.0/24:24
16 params:
17 ip_reserved:
18 gateway: +1
19 l2_network_device: +1
20 default_cfg01.mk22-lab-basic.local: +100
21 default_ctl01.mk22-lab-basic.local: +101
22 default_ctl02.mk22-lab-basic.local: +102
23 default_ctl03.mk22-lab-basic.local: +103
24 default_prx01.mk22-lab-basic.local: +121
25 default_cmp01.mk22-lab-basic.local: +105
Dennis Dmitriev9bcda482016-11-04 15:01:53 +020026 default_mon01.mk22-lab-basic.local: +107
Dennis Dmitriev2a13a132016-11-04 00:56:23 +020027 ip_ranges:
28 dhcp: [+100, -2]
29
30 private-pool01:
31 net: 192.168.10.0/24:24
32 params:
33 ip_reserved:
34 gateway: +1
35 l2_network_device: +1
36 default_cfg01.mk22-lab-basic.local: +100
37 default_ctl01.mk22-lab-basic.local: +101
38 default_ctl02.mk22-lab-basic.local: +102
39 default_ctl03.mk22-lab-basic.local: +103
40 default_prx01.mk22-lab-basic.local: +121
41 default_cmp01.mk22-lab-basic.local: +105
Dennis Dmitriev9bcda482016-11-04 15:01:53 +020042 default_mon01.mk22-lab-basic.local: +107
Dennis Dmitriev2a13a132016-11-04 00:56:23 +020043 ip_ranges:
44 dhcp: [+100, -2]
45
46 groups:
47 - name: default
48 driver:
49 name: devops.driver.libvirt
50 params:
51 connection_string: !os_env CONNECTION_STRING, qemu:///system
52 storage_pool_name: !os_env STORAGE_POOL_NAME, default
53 stp: False
54 hpet: False
55 enable_acpi: true
56 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
57
58 network_pools:
59 public: public-pool01
60 private: private-pool01
61
62 l2_network_devices:
63 public:
64 address_pool: public-pool01
65 dhcp: true
66# forward:
67# mode: nat
68
69 private:
70 address_pool: private-pool01
71 dhcp: true
72 forward:
73 mode: nat
74
75 group_volumes:
76 - name: cloudimage1404 # This name is used for 'backing_store' option for node volumes.
77 source_image: !os_env IMAGE_PATH1404 # https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img or
78 # http://apt.tcpcloud.eu/images/ubuntu-14-04-x64-201608231134.qcow2
79 format: qcow2
80 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
81 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
82 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
83 format: qcow2
84
85 nodes:
86 - name: cfg01.mk22-lab-basic.local
87 role: salt_master
88 params:
89 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +020090 memory: !os_env SLAVE_NODE_MEMORY, 2048
Dennis Dmitriev2a13a132016-11-04 00:56:23 +020091 boot:
92 - hd
93 cloud_init_volume_name: iso
94 cloud_init_iface_up: ens3
95 volumes:
96 - name: system
97 capacity: !os_env NODE_VOLUME_SIZE, 150
98 backing_store: cloudimage1604
99 format: qcow2
100 - name: iso # Volume with name 'iso' will be used
101 # for store image with cloud-init metadata.
102 capacity: 1
103 format: raw
104 device: cdrom
105 bus: ide
106 cloudinit_meta_data: !include mk22-lab-basic--meta-data.yaml
107 cloudinit_user_data: !include mk22-lab-basic--user-data-cfg01.yaml
108
109 interfaces:
110 - label: ens3
111 l2_network_device: private
112 interface_model: *interface_model
113 - label: ens4
114 l2_network_device: public
115 interface_model: *interface_model
116 network_config:
117 ens3:
118 networks:
119 - private
120 ens4:
121 networks:
122 - public
123
124 - name: ctl01.mk22-lab-basic.local
125 role: salt_minion
126 params:
127 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200128 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200129 boot:
130 - hd
131 cloud_init_volume_name: iso
132 cloud_init_iface_up: eth0
133 volumes:
134 - name: system
135 capacity: !os_env NODE_VOLUME_SIZE, 150
136 backing_store: cloudimage1404
137 format: qcow2
138 - name: iso # Volume with name 'iso' will be used
139 # for store image with cloud-init metadata.
140 capacity: 1
141 format: raw
142 device: cdrom
143 bus: ide
144 cloudinit_meta_data: !include mk22-lab-basic--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200145 cloudinit_user_data: !include mk22-lab-basic--user-data1404.yaml
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200146
147 interfaces: &interfaces
148 - label: eth0
149 l2_network_device: private
150 interface_model: *interface_model
151 - label: eth1
152 l2_network_device: public
153 interface_model: *interface_model
154 network_config: &network_config
155 eth0:
156 networks:
157 - private
158 eth1:
159 networks:
160 - public
161
162 - name: ctl02.mk22-lab-basic.local
163 role: salt_minion
164 params:
165 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200166 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200167 boot:
168 - hd
169 cloud_init_volume_name: iso
170 cloud_init_iface_up: eth0
171 volumes:
172 - name: system
173 capacity: !os_env NODE_VOLUME_SIZE, 150
174 backing_store: cloudimage1404
175 format: qcow2
176 - name: iso # Volume with name 'iso' will be used
177 # for store image with cloud-init metadata.
178 capacity: 1
179 format: raw
180 device: cdrom
181 bus: ide
182 cloudinit_meta_data: !include mk22-lab-basic--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200183 cloudinit_user_data: !include mk22-lab-basic--user-data1404.yaml
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200184
185 interfaces: *interfaces
186 network_config: *network_config
187
188 - name: ctl03.mk22-lab-basic.local
189 role: salt_minion
190 params:
191 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200192 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200193 boot:
194 - hd
195 cloud_init_volume_name: iso
196 cloud_init_iface_up: eth0
197 volumes:
198 - name: system
199 capacity: !os_env NODE_VOLUME_SIZE, 150
200 backing_store: cloudimage1404
201 format: qcow2
202 - name: iso # Volume with name 'iso' will be used
203 # for store image with cloud-init metadata.
204 capacity: 1
205 format: raw
206 device: cdrom
207 bus: ide
208 cloudinit_meta_data: !include mk22-lab-basic--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200209 cloudinit_user_data: !include mk22-lab-basic--user-data1404.yaml
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200210
211 interfaces: *interfaces
212 network_config: *network_config
213
214 - name: cmp01.mk22-lab-basic.local
215 role: salt_minion
216 params:
217 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200218 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200219 boot:
220 - hd
221 cloud_init_volume_name: iso
222 cloud_init_iface_up: eth0
223 volumes:
224 - name: system
225 capacity: !os_env NODE_VOLUME_SIZE, 150
226 backing_store: cloudimage1404
227 format: qcow2
228 - name: iso # Volume with name 'iso' will be used
229 # for store image with cloud-init metadata.
230 capacity: 1
231 format: raw
232 device: cdrom
233 bus: ide
234 cloudinit_meta_data: !include mk22-lab-basic--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200235 cloudinit_user_data: !include mk22-lab-basic--user-data1404.yaml
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200236
237 interfaces: *interfaces
238 network_config: *network_config
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200239
240 - name: mon01.mk22-lab-basic.local
241 role: salt_minion
242 params:
243 vcpu: !os_env SLAVE_NODE_CPU, 1
244 memory: !os_env SLAVE_NODE_MEMORY, 2048
245 boot:
246 - hd
247 cloud_init_volume_name: iso
248 cloud_init_iface_up: eth0
249 volumes:
250 - name: system
251 capacity: !os_env NODE_VOLUME_SIZE, 150
252 backing_store: cloudimage1604
253 format: qcow2
254 - name: iso # Volume with name 'iso' will be used
255 # for store image with cloud-init metadata.
256 capacity: 1
257 format: raw
258 device: cdrom
259 bus: ide
260 cloudinit_meta_data: !include mk22-lab-basic--meta-data.yaml
261 cloudinit_user_data: !include mk22-lab-basic--user-data1604.yaml
262
263 interfaces: *interfaces
264 network_config: *network_config
265