blob: 2db6e51e42544f36877159f30f7b3adf9c2a1423 [file] [log] [blame]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +03001---
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:
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +030011 env_name: !os_env ENV_NAME, tcpcloud-mk22
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030012
13 address_pools:
disc5298382016-11-23 16:03:33 +020014 admin-pool01:
Dennis Dmitriev45738b92016-10-20 18:11:15 +030015 net: 172.16.10.0/24:24
16 params:
17 ip_reserved:
18 gateway: +1
19 l2_network_device: +1
Dennis Dmitriev3bf410e2016-10-26 20:22:04 +030020 default_cfg01.mk22-lab-advanced.local: +100
21 default_ctl01.mk22-lab-advanced.local: +101
22 default_ctl02.mk22-lab-advanced.local: +102
23 default_ctl03.mk22-lab-advanced.local: +103
Dennis Dmitriev6860ba62016-11-01 21:43:46 +020024 default_prx01.mk22-lab-advanced.local: +121
Dennis Dmitriev3bf410e2016-10-26 20:22:04 +030025 default_cmp01.mk22-lab-advanced.local: +105
Dennis Dmitriev45738b92016-10-20 18:11:15 +030026 ip_ranges:
27 dhcp: [+100, -2]
28
29 private-pool01:
30 net: 192.168.10.0/24:24
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030031 params:
32 ip_reserved:
33 gateway: +1
34 l2_network_device: +1
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +020035 default_cfg01.mk22-lab-advanced.local: +100
36 default_ctl01.mk22-lab-advanced.local: +101
37 default_ctl02.mk22-lab-advanced.local: +102
38 default_ctl03.mk22-lab-advanced.local: +103
Dennis Dmitriev6860ba62016-11-01 21:43:46 +020039 default_prx01.mk22-lab-advanced.local: +121
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +020040 default_cmp01.mk22-lab-advanced.local: +105
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030041 ip_ranges:
Dennis Dmitriev44d6f142016-10-18 15:51:33 +030042 dhcp: [+100, -2]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030043
44 groups:
45 - name: default
46 driver:
47 name: devops.driver.libvirt
48 params:
49 connection_string: !os_env CONNECTION_STRING, qemu:///system
50 storage_pool_name: !os_env STORAGE_POOL_NAME, default
51 stp: False
52 hpet: False
53 enable_acpi: true
54 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
55
56 network_pools:
disc5298382016-11-23 16:03:33 +020057 admin: admin-pool01
Dennis Dmitriev45738b92016-10-20 18:11:15 +030058 private: private-pool01
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030059
60 l2_network_devices:
disc5298382016-11-23 16:03:33 +020061 admin:
62 address_pool: admin-pool01
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030063 dhcp: true
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +020064# forward:
65# mode: nat
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030066
67 private:
Dennis Dmitriev45738b92016-10-20 18:11:15 +030068 address_pool: private-pool01
69 dhcp: true
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +020070 forward:
71 mode: nat
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030072
73 group_volumes:
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +030074 - name: cloudimage1404 # This name is used for 'backing_store' option for node volumes.
75 source_image: !os_env IMAGE_PATH1404 # https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img or
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030076 # http://apt.tcpcloud.eu/images/ubuntu-14-04-x64-201608231134.qcow2
77 format: qcow2
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +030078 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
79 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
80 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
81 format: qcow2
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030082
83 nodes:
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +030084 - name: cfg01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +030085 role: salt_master
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030086 params:
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +030087 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +020088 memory: !os_env SLAVE_NODE_MEMORY, 2048
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030089 boot:
90 - hd
91 cloud_init_volume_name: iso
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +020092 cloud_init_iface_up: ens3
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030093 volumes:
94 - name: system
95 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +030096 backing_store: cloudimage1604
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030097 format: qcow2
98 - name: iso # Volume with name 'iso' will be used
99 # for store image with cloud-init metadata.
100 capacity: 1
101 format: raw
102 device: cdrom
103 bus: ide
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200104 cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml
105 cloudinit_user_data: !include mk22-lab-advanced--user-data-cfg01.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300106
107 interfaces:
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200108 - label: ens3
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300109 l2_network_device: private
110 interface_model: *interface_model
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200111 - label: ens4
disc5298382016-11-23 16:03:33 +0200112 l2_network_device: admin
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200113 interface_model: *interface_model
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300114 network_config:
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200115 ens3:
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300116 networks:
117 - private
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200118 ens4:
119 networks:
disc5298382016-11-23 16:03:33 +0200120 - admin
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300121
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300122 - name: ctl01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300123 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300124 params:
125 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200126 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300127 boot:
128 - hd
129 cloud_init_volume_name: iso
130 cloud_init_iface_up: eth0
131 volumes:
132 - name: system
133 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +0300134 backing_store: cloudimage1404
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300135 format: qcow2
Dmitry Tyzhnenko15166f82016-12-23 16:38:27 +0200136 - name: cinder
137 capacity: 50
138 format: qcow2
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300139 - name: iso # Volume with name 'iso' will be used
140 # for store image with cloud-init metadata.
141 capacity: 1
142 format: raw
143 device: cdrom
144 bus: ide
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200145 cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200146 cloudinit_user_data: !include mk22-lab-advanced--user-data1404.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300147
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200148 interfaces: &interfaces
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300149 - label: eth0
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300150 l2_network_device: private
151 interface_model: *interface_model
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200152 - label: eth1
disc5298382016-11-23 16:03:33 +0200153 l2_network_device: admin
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200154 interface_model: *interface_model
155 network_config: &network_config
156 eth0:
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300157 networks:
158 - private
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200159 eth1:
160 networks:
disc5298382016-11-23 16:03:33 +0200161 - admin
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300162
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300163 - name: ctl02.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300164 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300165 params:
166 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200167 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300168 boot:
169 - hd
170 cloud_init_volume_name: iso
171 cloud_init_iface_up: eth0
172 volumes:
173 - name: system
174 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +0300175 backing_store: cloudimage1404
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300176 format: qcow2
Dmitry Tyzhnenko15166f82016-12-23 16:38:27 +0200177 - name: cinder
178 capacity: 50
179 format: qcow2
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300180 - name: iso # Volume with name 'iso' will be used
181 # for store image with cloud-init metadata.
182 capacity: 1
183 format: raw
184 device: cdrom
185 bus: ide
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200186 cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200187 cloudinit_user_data: !include mk22-lab-advanced--user-data1404.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300188
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200189 interfaces: *interfaces
190 network_config: *network_config
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300191
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300192 - name: ctl03.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300193 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300194 params:
195 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200196 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300197 boot:
198 - hd
199 cloud_init_volume_name: iso
200 cloud_init_iface_up: eth0
201 volumes:
202 - name: system
203 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +0300204 backing_store: cloudimage1404
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300205 format: qcow2
Dmitry Tyzhnenko15166f82016-12-23 16:38:27 +0200206 - name: cinder
207 capacity: 50
208 format: qcow2
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300209 - name: iso # Volume with name 'iso' will be used
210 # for store image with cloud-init metadata.
211 capacity: 1
212 format: raw
213 device: cdrom
214 bus: ide
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200215 cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200216 cloudinit_user_data: !include mk22-lab-advanced--user-data1404.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300217
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200218 interfaces: *interfaces
219 network_config: *network_config
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300220
Dennis Dmitriev23e5d192016-10-31 11:27:10 +0200221 - name: prx01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300222 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300223 params:
Dennis Dmitriev95126792016-10-18 17:03:30 +0300224 vcpu: !os_env SLAVE_NODE_CPU, 1
225 memory: !os_env SLAVE_NODE_MEMORY, 2048
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300226 boot:
227 - hd
228 cloud_init_volume_name: iso
229 cloud_init_iface_up: eth0
230 volumes:
231 - name: system
232 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +0300233 backing_store: cloudimage1404
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300234 format: qcow2
235 - name: iso # Volume with name 'iso' will be used
236 # for store image with cloud-init metadata.
237 capacity: 1
238 format: raw
239 device: cdrom
240 bus: ide
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200241 cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200242 cloudinit_user_data: !include mk22-lab-advanced--user-data1404.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300243
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200244 interfaces: *interfaces
245 network_config: *network_config
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300246
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300247 - name: cmp01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300248 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300249 params:
Dennis Dmitriev95126792016-10-18 17:03:30 +0300250 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200251 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300252 boot:
253 - hd
254 cloud_init_volume_name: iso
255 cloud_init_iface_up: eth0
256 volumes:
257 - name: system
258 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +0300259 backing_store: cloudimage1404
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300260 format: qcow2
261 - name: iso # Volume with name 'iso' will be used
262 # for store image with cloud-init metadata.
263 capacity: 1
264 format: raw
265 device: cdrom
266 bus: ide
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200267 cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200268 cloudinit_user_data: !include mk22-lab-advanced--user-data1404.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300269
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200270 interfaces: *interfaces
271 network_config: *network_config