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 |
Dennis Dmitriev | 23e5d19 | 2016-10-31 11:27:10 +0200 | [diff] [blame] | 24 | default_prx01.mk22-lab-advanced.local: +104 |
Dennis Dmitriev | 3bf410e | 2016-10-26 20:22:04 +0300 | [diff] [blame] | 25 | default_cmp01.mk22-lab-advanced.local: +105 |
Dennis Dmitriev | 45738b9 | 2016-10-20 18:11:15 +0300 | [diff] [blame] | 26 | ip_ranges: |
| 27 | dhcp: [+100, -2] |
| 28 | |
| 29 | private-pool01: |
| 30 | net: 192.168.10.0/24:24 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 31 | params: |
| 32 | ip_reserved: |
| 33 | gateway: +1 |
| 34 | l2_network_device: +1 |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 35 | 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 |
| 39 | default_prx01.mk22-lab-advanced.local: +104 |
| 40 | default_cmp01.mk22-lab-advanced.local: +105 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 41 | ip_ranges: |
Dennis Dmitriev | 44d6f14 | 2016-10-18 15:51:33 +0300 | [diff] [blame] | 42 | dhcp: [+100, -2] |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 43 | |
| 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: |
| 57 | public: public-pool01 |
Dennis Dmitriev | 45738b9 | 2016-10-20 18:11:15 +0300 | [diff] [blame] | 58 | private: private-pool01 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 59 | |
| 60 | l2_network_devices: |
| 61 | public: |
| 62 | address_pool: public-pool01 |
| 63 | dhcp: true |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 64 | # forward: |
| 65 | # mode: nat |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 66 | |
| 67 | private: |
Dennis Dmitriev | 45738b9 | 2016-10-20 18:11:15 +0300 | [diff] [blame] | 68 | address_pool: private-pool01 |
| 69 | dhcp: true |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 70 | forward: |
| 71 | mode: nat |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 72 | |
| 73 | group_volumes: |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 74 | - 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 Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 76 | # http://apt.tcpcloud.eu/images/ubuntu-14-04-x64-201608231134.qcow2 |
| 77 | format: qcow2 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 78 | - 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 Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 82 | |
| 83 | nodes: |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 84 | - name: cfg01.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 85 | role: salt_master |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 86 | params: |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 87 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 88 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 89 | boot: |
| 90 | - hd |
| 91 | cloud_init_volume_name: iso |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 92 | cloud_init_iface_up: ens3 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 93 | volumes: |
| 94 | - name: system |
| 95 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 96 | backing_store: cloudimage1604 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 97 | 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 Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 104 | cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml |
| 105 | cloudinit_user_data: !include mk22-lab-advanced--user-data-cfg01.yaml |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 106 | |
| 107 | interfaces: |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 108 | - label: ens3 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 109 | l2_network_device: private |
| 110 | interface_model: *interface_model |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 111 | - label: ens4 |
| 112 | l2_network_device: public |
| 113 | interface_model: *interface_model |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 114 | network_config: |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 115 | ens3: |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 116 | networks: |
| 117 | - private |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 118 | ens4: |
| 119 | networks: |
| 120 | - public |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 121 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 122 | - name: ctl01.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 123 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 124 | params: |
| 125 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 126 | memory: !os_env SLAVE_NODE_MEMORY, 12400 |
| 127 | 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 Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 134 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 135 | format: qcow2 |
| 136 | - name: iso # Volume with name 'iso' will be used |
| 137 | # for store image with cloud-init metadata. |
| 138 | capacity: 1 |
| 139 | format: raw |
| 140 | device: cdrom |
| 141 | bus: ide |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 142 | cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml |
| 143 | cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 144 | |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 145 | interfaces: &interfaces |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 146 | - label: eth0 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 147 | l2_network_device: private |
| 148 | interface_model: *interface_model |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 149 | - label: eth1 |
| 150 | l2_network_device: public |
| 151 | interface_model: *interface_model |
| 152 | network_config: &network_config |
| 153 | eth0: |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 154 | networks: |
| 155 | - private |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 156 | eth1: |
| 157 | networks: |
| 158 | - public |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 159 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 160 | - name: ctl02.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 161 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 162 | params: |
| 163 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 164 | memory: !os_env SLAVE_NODE_MEMORY, 12400 |
| 165 | boot: |
| 166 | - hd |
| 167 | cloud_init_volume_name: iso |
| 168 | cloud_init_iface_up: eth0 |
| 169 | volumes: |
| 170 | - name: system |
| 171 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 172 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 173 | format: qcow2 |
| 174 | - name: iso # Volume with name 'iso' will be used |
| 175 | # for store image with cloud-init metadata. |
| 176 | capacity: 1 |
| 177 | format: raw |
| 178 | device: cdrom |
| 179 | bus: ide |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 180 | cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml |
| 181 | cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 182 | |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 183 | interfaces: *interfaces |
| 184 | network_config: *network_config |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 185 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 186 | - name: ctl03.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 187 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 188 | params: |
| 189 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 190 | memory: !os_env SLAVE_NODE_MEMORY, 12400 |
| 191 | boot: |
| 192 | - hd |
| 193 | cloud_init_volume_name: iso |
| 194 | cloud_init_iface_up: eth0 |
| 195 | volumes: |
| 196 | - name: system |
| 197 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 198 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 199 | format: qcow2 |
| 200 | - name: iso # Volume with name 'iso' will be used |
| 201 | # for store image with cloud-init metadata. |
| 202 | capacity: 1 |
| 203 | format: raw |
| 204 | device: cdrom |
| 205 | bus: ide |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 206 | cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml |
| 207 | cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 208 | |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 209 | interfaces: *interfaces |
| 210 | network_config: *network_config |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 211 | |
Dennis Dmitriev | 23e5d19 | 2016-10-31 11:27:10 +0200 | [diff] [blame] | 212 | - name: prx01.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 213 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 214 | params: |
Dennis Dmitriev | 9512679 | 2016-10-18 17:03:30 +0300 | [diff] [blame] | 215 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 216 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 217 | boot: |
| 218 | - hd |
| 219 | cloud_init_volume_name: iso |
| 220 | cloud_init_iface_up: eth0 |
| 221 | volumes: |
| 222 | - name: system |
| 223 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 224 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 225 | format: qcow2 |
| 226 | - name: iso # Volume with name 'iso' will be used |
| 227 | # for store image with cloud-init metadata. |
| 228 | capacity: 1 |
| 229 | format: raw |
| 230 | device: cdrom |
| 231 | bus: ide |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 232 | cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml |
| 233 | cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 234 | |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 235 | interfaces: *interfaces |
| 236 | network_config: *network_config |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 237 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 238 | - name: cmp01.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 239 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 240 | params: |
Dennis Dmitriev | 9512679 | 2016-10-18 17:03:30 +0300 | [diff] [blame] | 241 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 242 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 243 | boot: |
| 244 | - hd |
| 245 | cloud_init_volume_name: iso |
| 246 | cloud_init_iface_up: eth0 |
| 247 | volumes: |
| 248 | - name: system |
| 249 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 250 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 251 | format: qcow2 |
| 252 | - name: iso # Volume with name 'iso' will be used |
| 253 | # for store image with cloud-init metadata. |
| 254 | capacity: 1 |
| 255 | format: raw |
| 256 | device: cdrom |
| 257 | bus: ide |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 258 | cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml |
| 259 | cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 260 | |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 261 | interfaces: *interfaces |
| 262 | network_config: *network_config |