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 |
| 35 | ip_ranges: |
Dennis Dmitriev | 44d6f14 | 2016-10-18 15:51:33 +0300 | [diff] [blame] | 36 | dhcp: [+100, -2] |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 37 | |
| 38 | groups: |
| 39 | - name: default |
| 40 | driver: |
| 41 | name: devops.driver.libvirt |
| 42 | params: |
| 43 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 44 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 45 | stp: False |
| 46 | hpet: False |
| 47 | enable_acpi: true |
| 48 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
| 49 | |
| 50 | network_pools: |
| 51 | public: public-pool01 |
Dennis Dmitriev | 45738b9 | 2016-10-20 18:11:15 +0300 | [diff] [blame] | 52 | private: private-pool01 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 53 | |
| 54 | l2_network_devices: |
| 55 | public: |
| 56 | address_pool: public-pool01 |
| 57 | dhcp: true |
| 58 | forward: |
| 59 | mode: nat |
| 60 | |
| 61 | private: |
Dennis Dmitriev | 45738b9 | 2016-10-20 18:11:15 +0300 | [diff] [blame] | 62 | address_pool: private-pool01 |
| 63 | dhcp: true |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 64 | |
| 65 | group_volumes: |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 66 | - name: cloudimage1404 # This name is used for 'backing_store' option for node volumes. |
| 67 | 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] | 68 | # http://apt.tcpcloud.eu/images/ubuntu-14-04-x64-201608231134.qcow2 |
| 69 | format: qcow2 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 70 | - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes. |
| 71 | source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or |
| 72 | # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2 |
| 73 | format: qcow2 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 74 | |
| 75 | nodes: |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 76 | - name: cfg01.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 77 | role: salt_master |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 78 | params: |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 79 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 80 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 81 | boot: |
| 82 | - hd |
| 83 | cloud_init_volume_name: iso |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 84 | cloud_init_iface_up: ens3 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 85 | volumes: |
| 86 | - name: system |
| 87 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 88 | backing_store: cloudimage1604 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 89 | format: qcow2 |
| 90 | - name: iso # Volume with name 'iso' will be used |
| 91 | # for store image with cloud-init metadata. |
| 92 | capacity: 1 |
| 93 | format: raw |
| 94 | device: cdrom |
| 95 | bus: ide |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 96 | cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml |
| 97 | cloudinit_user_data: !include mk22-lab-advanced--user-data-cfg01.yaml |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 98 | |
| 99 | interfaces: |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 100 | - label: ens3 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 101 | l2_network_device: public |
| 102 | interface_model: *interface_model |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 103 | - label: ens4 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 104 | l2_network_device: private |
| 105 | interface_model: *interface_model |
| 106 | network_config: |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 107 | ens3: |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 108 | networks: |
| 109 | - public |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 110 | ens4: |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 111 | networks: |
| 112 | - private |
| 113 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 114 | - name: ctl01.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 115 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 116 | params: |
| 117 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 118 | memory: !os_env SLAVE_NODE_MEMORY, 12400 |
| 119 | boot: |
| 120 | - hd |
| 121 | cloud_init_volume_name: iso |
| 122 | cloud_init_iface_up: eth0 |
| 123 | volumes: |
| 124 | - name: system |
| 125 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 126 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 127 | format: qcow2 |
| 128 | - name: iso # Volume with name 'iso' will be used |
| 129 | # for store image with cloud-init metadata. |
| 130 | capacity: 1 |
| 131 | format: raw |
| 132 | device: cdrom |
| 133 | bus: ide |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 134 | cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml |
| 135 | cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 136 | |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 137 | interfaces: &interfaces |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 138 | - label: eth0 |
| 139 | l2_network_device: public |
| 140 | interface_model: *interface_model |
| 141 | - label: eth1 |
| 142 | l2_network_device: private |
| 143 | interface_model: *interface_model |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 144 | network_config: &network_config |
| 145 | eth0: |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 146 | networks: |
| 147 | - public |
| 148 | eth1: |
| 149 | networks: |
| 150 | - private |
| 151 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 152 | - name: ctl02.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 153 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 154 | params: |
| 155 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 156 | memory: !os_env SLAVE_NODE_MEMORY, 12400 |
| 157 | boot: |
| 158 | - hd |
| 159 | cloud_init_volume_name: iso |
| 160 | cloud_init_iface_up: eth0 |
| 161 | volumes: |
| 162 | - name: system |
| 163 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 164 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 165 | format: qcow2 |
| 166 | - name: iso # Volume with name 'iso' will be used |
| 167 | # for store image with cloud-init metadata. |
| 168 | capacity: 1 |
| 169 | format: raw |
| 170 | device: cdrom |
| 171 | bus: ide |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 172 | cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml |
| 173 | cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 174 | |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 175 | interfaces: *interfaces |
| 176 | network_config: *network_config |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 177 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 178 | - name: ctl03.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 179 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 180 | params: |
| 181 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 182 | memory: !os_env SLAVE_NODE_MEMORY, 12400 |
| 183 | boot: |
| 184 | - hd |
| 185 | cloud_init_volume_name: iso |
| 186 | cloud_init_iface_up: eth0 |
| 187 | volumes: |
| 188 | - name: system |
| 189 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 190 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 191 | format: qcow2 |
| 192 | - name: iso # Volume with name 'iso' will be used |
| 193 | # for store image with cloud-init metadata. |
| 194 | capacity: 1 |
| 195 | format: raw |
| 196 | device: cdrom |
| 197 | bus: ide |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 198 | cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml |
| 199 | cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 200 | |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 201 | interfaces: *interfaces |
| 202 | network_config: *network_config |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 203 | |
Dennis Dmitriev | 23e5d19 | 2016-10-31 11:27:10 +0200 | [diff] [blame] | 204 | - name: prx01.mk22-lab-advanced.local |
Dennis Dmitriev | b5d7424 | 2016-10-18 14:05:29 +0300 | [diff] [blame] | 205 | role: salt_minion |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 206 | params: |
Dennis Dmitriev | 9512679 | 2016-10-18 17:03:30 +0300 | [diff] [blame] | 207 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 208 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 209 | boot: |
| 210 | - hd |
| 211 | cloud_init_volume_name: iso |
| 212 | cloud_init_iface_up: eth0 |
| 213 | volumes: |
| 214 | - name: system |
| 215 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 7080d8d | 2016-10-26 13:43:37 +0300 | [diff] [blame] | 216 | backing_store: cloudimage1404 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 217 | format: qcow2 |
| 218 | - name: iso # Volume with name 'iso' will be used |
| 219 | # for store image with cloud-init metadata. |
| 220 | capacity: 1 |
| 221 | format: raw |
| 222 | device: cdrom |
| 223 | bus: ide |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 224 | cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml |
| 225 | cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 226 | |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 227 | interfaces: *interfaces |
| 228 | network_config: *network_config |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 229 | |
Dennis Dmitriev | 0ebe9f3 | 2016-10-25 11:01:44 +0300 | [diff] [blame] | 230 | - name: cmp01.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, 4 |
| 234 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
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 |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 250 | cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml |
| 251 | cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 252 | |
Dennis Dmitriev | 010f4cd | 2016-11-01 20:43:51 +0200 | [diff] [blame^] | 253 | interfaces: *interfaces |
| 254 | network_config: *network_config |