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