Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 1 | --- |
| 2 | aliases: |
| 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 | |
| 9 | template: |
| 10 | devops_settings: |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 11 | env_name: !os_env ENV_NAME, tcpcloud-mk22 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 12 | |
| 13 | address_pools: |
| 14 | public-pool01: |
Dennis Dmitriev | 45738b9 | 2016-10-20 18:11:15 +0300 | [diff] [blame] | 15 | net: 172.16.10.0/24:24 |
| 16 | params: |
| 17 | ip_reserved: |
| 18 | gateway: +1 |
| 19 | l2_network_device: +1 |
Dennis Dmitriev | 3bf410e | 2016-10-26 20:22:04 +0300 | [diff] [blame^] | 20 | 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 |
| 24 | default_web01.mk22-lab-advanced.local: +104 |
| 25 | default_cmp01.mk22-lab-advanced.local: +105 |
| 26 | default_mtr01.mk22-lab-advanced.local: +106 |
| 27 | default_mon01.mk22-lab-advanced.local: +107 |
Dennis Dmitriev | 45738b9 | 2016-10-20 18:11:15 +0300 | [diff] [blame] | 28 | ip_ranges: |
| 29 | dhcp: [+100, -2] |
| 30 | |
| 31 | private-pool01: |
| 32 | net: 192.168.10.0/24:24 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 33 | params: |
| 34 | ip_reserved: |
| 35 | gateway: +1 |
| 36 | l2_network_device: +1 |
| 37 | ip_ranges: |
Dennis Dmitriev | 44d6f14 | 2016-10-18 15:51:33 +0300 | [diff] [blame] | 38 | dhcp: [+100, -2] |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 39 | |
| 40 | groups: |
| 41 | - name: default |
| 42 | driver: |
| 43 | name: devops.driver.libvirt |
| 44 | params: |
| 45 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 46 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 47 | stp: False |
| 48 | hpet: False |
| 49 | enable_acpi: true |
| 50 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
| 51 | |
| 52 | network_pools: |
| 53 | public: public-pool01 |
Dennis Dmitriev | 45738b9 | 2016-10-20 18:11:15 +0300 | [diff] [blame] | 54 | private: private-pool01 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 55 | |
| 56 | l2_network_devices: |
| 57 | public: |
| 58 | address_pool: public-pool01 |
| 59 | dhcp: true |
| 60 | forward: |
| 61 | mode: nat |
| 62 | |
| 63 | private: |
Dennis Dmitriev | 45738b9 | 2016-10-20 18:11:15 +0300 | [diff] [blame] | 64 | address_pool: private-pool01 |
| 65 | dhcp: true |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 66 | |
| 67 | group_volumes: |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 68 | - name: cloudimage1404 # This name is used for 'backing_store' option for node volumes. |
| 69 | source_image: !os_env IMAGE_PATH1404 # https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img or |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 70 | # http://apt.tcpcloud.eu/images/ubuntu-14-04-x64-201608231134.qcow2 |
| 71 | format: qcow2 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 72 | - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes. |
| 73 | source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or |
| 74 | # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2 |
| 75 | format: qcow2 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 76 | |
| 77 | nodes: |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 78 | - name: cfg01.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 79 | role: salt_master |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 80 | params: |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 81 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 82 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 83 | boot: |
| 84 | - hd |
| 85 | cloud_init_volume_name: iso |
| 86 | cloud_init_iface_up: eth0 |
| 87 | volumes: |
| 88 | - name: system |
| 89 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 90 | backing_store: cloudimage1604 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 91 | format: qcow2 |
| 92 | - name: iso # Volume with name 'iso' will be used |
| 93 | # for store image with cloud-init metadata. |
| 94 | capacity: 1 |
| 95 | format: raw |
| 96 | device: cdrom |
| 97 | bus: ide |
| 98 | cloudinit_meta_data: !include tcpcloud--meta-data.yaml |
| 99 | cloudinit_user_data: !include tcpcloud--user-data-master-node.yaml |
| 100 | |
| 101 | interfaces: |
| 102 | - label: eth0 |
| 103 | l2_network_device: public |
| 104 | interface_model: *interface_model |
| 105 | - label: eth1 |
| 106 | l2_network_device: private |
| 107 | interface_model: *interface_model |
| 108 | network_config: |
| 109 | eth0: # Will get an IP from DHCP public-pool01 |
| 110 | networks: |
| 111 | - public |
| 112 | eth1: |
| 113 | networks: |
| 114 | - private |
| 115 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 116 | - name: ctl01.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 117 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 118 | params: |
| 119 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 120 | memory: !os_env SLAVE_NODE_MEMORY, 12400 |
| 121 | boot: |
| 122 | - hd |
| 123 | cloud_init_volume_name: iso |
| 124 | cloud_init_iface_up: eth0 |
| 125 | volumes: |
| 126 | - name: system |
| 127 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 128 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 129 | format: qcow2 |
| 130 | - name: iso # Volume with name 'iso' will be used |
| 131 | # for store image with cloud-init metadata. |
| 132 | capacity: 1 |
| 133 | format: raw |
| 134 | device: cdrom |
| 135 | bus: ide |
| 136 | cloudinit_meta_data: !include tcpcloud--meta-data.yaml |
| 137 | cloudinit_user_data: !include tcpcloud--user-data.yaml |
| 138 | |
| 139 | interfaces: |
| 140 | - label: eth0 |
| 141 | l2_network_device: public |
| 142 | interface_model: *interface_model |
| 143 | - label: eth1 |
| 144 | l2_network_device: private |
| 145 | interface_model: *interface_model |
| 146 | network_config: |
| 147 | eth0: # Will get an IP from DHCP public-pool01 |
| 148 | networks: |
| 149 | - public |
| 150 | eth1: |
| 151 | networks: |
| 152 | - private |
| 153 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 154 | - name: ctl02.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 155 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 156 | params: |
| 157 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 158 | memory: !os_env SLAVE_NODE_MEMORY, 12400 |
| 159 | boot: |
| 160 | - hd |
| 161 | cloud_init_volume_name: iso |
| 162 | cloud_init_iface_up: eth0 |
| 163 | volumes: |
| 164 | - name: system |
| 165 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 166 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 167 | format: qcow2 |
| 168 | - name: iso # Volume with name 'iso' will be used |
| 169 | # for store image with cloud-init metadata. |
| 170 | capacity: 1 |
| 171 | format: raw |
| 172 | device: cdrom |
| 173 | bus: ide |
| 174 | cloudinit_meta_data: !include tcpcloud--meta-data.yaml |
| 175 | cloudinit_user_data: !include tcpcloud--user-data.yaml |
| 176 | |
| 177 | interfaces: |
| 178 | - label: eth0 |
| 179 | l2_network_device: public |
| 180 | interface_model: *interface_model |
| 181 | - label: eth1 |
| 182 | l2_network_device: private |
| 183 | interface_model: *interface_model |
| 184 | network_config: |
| 185 | eth0: # Will get an IP from DHCP public-pool01 |
| 186 | networks: |
| 187 | - public |
| 188 | eth1: |
| 189 | networks: |
| 190 | - private |
| 191 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 192 | - name: ctl03.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 193 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 194 | params: |
| 195 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 196 | memory: !os_env SLAVE_NODE_MEMORY, 12400 |
| 197 | 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 Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 204 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 205 | format: qcow2 |
| 206 | - name: iso # Volume with name 'iso' will be used |
| 207 | # for store image with cloud-init metadata. |
| 208 | capacity: 1 |
| 209 | format: raw |
| 210 | device: cdrom |
| 211 | bus: ide |
| 212 | cloudinit_meta_data: !include tcpcloud--meta-data.yaml |
| 213 | cloudinit_user_data: !include tcpcloud--user-data.yaml |
| 214 | |
| 215 | interfaces: |
| 216 | - label: eth0 |
| 217 | l2_network_device: public |
| 218 | interface_model: *interface_model |
| 219 | - label: eth1 |
| 220 | l2_network_device: private |
| 221 | interface_model: *interface_model |
| 222 | network_config: |
| 223 | eth0: # Will get an IP from DHCP public-pool01 |
| 224 | networks: |
| 225 | - public |
| 226 | eth1: |
| 227 | networks: |
| 228 | - private |
| 229 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 230 | - name: web01.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 231 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 232 | params: |
Dennis Dmitriev | 9512679 | 2016-10-18 17:03:30 +0300 | [diff] [blame] | 233 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 234 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 235 | boot: |
| 236 | - hd |
| 237 | cloud_init_volume_name: iso |
| 238 | cloud_init_iface_up: eth0 |
| 239 | volumes: |
| 240 | - name: system |
| 241 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 242 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 243 | format: qcow2 |
| 244 | - name: iso # Volume with name 'iso' will be used |
| 245 | # for store image with cloud-init metadata. |
| 246 | capacity: 1 |
| 247 | format: raw |
| 248 | device: cdrom |
| 249 | bus: ide |
| 250 | cloudinit_meta_data: !include tcpcloud--meta-data.yaml |
| 251 | cloudinit_user_data: !include tcpcloud--user-data.yaml |
| 252 | |
| 253 | interfaces: |
| 254 | - label: eth0 |
| 255 | l2_network_device: public |
| 256 | interface_model: *interface_model |
| 257 | - label: eth1 |
| 258 | l2_network_device: private |
| 259 | interface_model: *interface_model |
| 260 | network_config: |
| 261 | eth0: # Will get an IP from DHCP public-pool01 |
| 262 | networks: |
| 263 | - public |
| 264 | eth1: |
| 265 | networks: |
| 266 | - private |
| 267 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 268 | - name: cmp01.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 269 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 270 | params: |
Dennis Dmitriev | 9512679 | 2016-10-18 17:03:30 +0300 | [diff] [blame] | 271 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 272 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 273 | boot: |
| 274 | - hd |
| 275 | cloud_init_volume_name: iso |
| 276 | cloud_init_iface_up: eth0 |
| 277 | volumes: |
| 278 | - name: system |
| 279 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 280 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 281 | format: qcow2 |
| 282 | - name: iso # Volume with name 'iso' will be used |
| 283 | # for store image with cloud-init metadata. |
| 284 | capacity: 1 |
| 285 | format: raw |
| 286 | device: cdrom |
| 287 | bus: ide |
| 288 | cloudinit_meta_data: !include tcpcloud--meta-data.yaml |
| 289 | cloudinit_user_data: !include tcpcloud--user-data.yaml |
| 290 | |
| 291 | interfaces: |
| 292 | - label: eth0 |
| 293 | l2_network_device: public |
| 294 | interface_model: *interface_model |
| 295 | - label: eth1 |
| 296 | l2_network_device: private |
| 297 | interface_model: *interface_model |
| 298 | network_config: |
| 299 | eth0: # Will get an IP from DHCP public-pool01 |
| 300 | networks: |
| 301 | - public |
| 302 | eth1: |
| 303 | networks: |
| 304 | - private |
| 305 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 306 | - name: mtr01.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 307 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 308 | params: |
| 309 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 310 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 311 | boot: |
| 312 | - hd |
| 313 | cloud_init_volume_name: iso |
| 314 | cloud_init_iface_up: eth0 |
| 315 | volumes: |
| 316 | - name: system |
| 317 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 318 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 319 | format: qcow2 |
| 320 | - name: iso # Volume with name 'iso' will be used |
| 321 | # for store image with cloud-init metadata. |
| 322 | capacity: 1 |
| 323 | format: raw |
| 324 | device: cdrom |
| 325 | bus: ide |
| 326 | cloudinit_meta_data: !include tcpcloud--meta-data.yaml |
| 327 | cloudinit_user_data: !include tcpcloud--user-data.yaml |
| 328 | |
| 329 | interfaces: |
| 330 | - label: eth0 |
| 331 | l2_network_device: public |
| 332 | interface_model: *interface_model |
| 333 | - label: eth1 |
| 334 | l2_network_device: private |
| 335 | interface_model: *interface_model |
| 336 | network_config: |
| 337 | eth0: # Will get an IP from DHCP public-pool01 |
| 338 | networks: |
| 339 | - public |
| 340 | eth1: |
| 341 | networks: |
| 342 | - private |
Dennis Dmitriev | 45738b9 | 2016-10-20 18:11:15 +0300 | [diff] [blame] | 343 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 344 | - name: mon01.mk22-lab-advanced.local |
Dennis Dmitriev | 45738b9 | 2016-10-20 18:11:15 +0300 | [diff] [blame] | 345 | role: salt_minion |
| 346 | params: |
| 347 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 348 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 349 | boot: |
| 350 | - hd |
| 351 | cloud_init_volume_name: iso |
| 352 | cloud_init_iface_up: eth0 |
| 353 | volumes: |
| 354 | - name: system |
| 355 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 356 | backing_store: cloudimage1404 |
Dennis Dmitriev | 45738b9 | 2016-10-20 18:11:15 +0300 | [diff] [blame] | 357 | format: qcow2 |
| 358 | - name: iso # Volume with name 'iso' will be used |
| 359 | # for store image with cloud-init metadata. |
| 360 | capacity: 1 |
| 361 | format: raw |
| 362 | device: cdrom |
| 363 | bus: ide |
| 364 | cloudinit_meta_data: !include tcpcloud--meta-data.yaml |
| 365 | cloudinit_user_data: !include tcpcloud--user-data.yaml |
| 366 | |
| 367 | interfaces: |
| 368 | - label: eth0 |
| 369 | l2_network_device: public |
| 370 | interface_model: *interface_model |
| 371 | - label: eth1 |
| 372 | l2_network_device: private |
| 373 | interface_model: *interface_model |
| 374 | network_config: |
| 375 | eth0: # Will get an IP from DHCP public-pool01 |
| 376 | networks: |
| 377 | - public |
| 378 | eth1: |
| 379 | networks: |
| 380 | - private |