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