Tatyana Leontovich | b740459 | 2017-04-07 11:52:28 +0300 | [diff] [blame] | 1 | --- |
| 2 | aliases: |
| 3 | default_interface_model: |
| 4 | - &interface_model !os_env INTERFACE_MODEL, virtio |
| 5 | |
| 6 | {% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'mcp-fuel-aio') + '.local' %} |
| 7 | {% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %} |
| 8 | {% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %} |
| 9 | {% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %} |
| 10 | {% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %} |
| 11 | {% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %} |
| 12 | {% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %} |
| 13 | |
| 14 | template: |
| 15 | devops_settings: |
| 16 | env_name: {{ os_env('ENV_NAME', 'mcp-fuel-aio') }} |
| 17 | |
| 18 | address_pools: |
| 19 | admin-pool01: |
| 20 | net: 172.16.10.0/24:24 |
| 21 | params: |
| 22 | ip_reserved: |
| 23 | gateway: +1 |
| 24 | l2_network_device: +1 |
| 25 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 26 | default_{{ HOSTNAME_CTL01 }}: +107 |
| 27 | default_{{ HOSTNAME_CTL02 }}: +108 |
| 28 | default_{{ HOSTNAME_CTL03 }}: +109 |
| 29 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 30 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 31 | ip_ranges: |
| 32 | dhcp: [+90, -10] |
| 33 | |
Tatyana Leontovich | 52037a4 | 2017-04-07 13:57:54 +0300 | [diff] [blame] | 34 | private-pool01: |
Tatyana Leontovich | b740459 | 2017-04-07 11:52:28 +0300 | [diff] [blame] | 35 | net: 192.168.10.0/24:24 |
| 36 | params: |
| 37 | ip_reserved: |
| 38 | gateway: +1 |
| 39 | l2_network_device: +1 |
| 40 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 41 | default_{{ HOSTNAME_CTL01 }}: +107 |
| 42 | default_{{ HOSTNAME_CTL02 }}: +108 |
| 43 | default_{{ HOSTNAME_CTL03 }}: +109 |
| 44 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 45 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 46 | ip_ranges: |
| 47 | dhcp: [+90, -10] |
| 48 | |
| 49 | groups: |
| 50 | - name: default |
| 51 | driver: |
| 52 | name: devops.driver.libvirt |
| 53 | params: |
| 54 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 55 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 56 | stp: False |
| 57 | hpet: False |
| 58 | enable_acpi: true |
| 59 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
| 60 | |
| 61 | network_pools: |
| 62 | admin: admin-pool01 |
| 63 | private: private-pool01 |
| 64 | |
| 65 | l2_network_devices: |
| 66 | private: |
| 67 | address_pool: private-pool01 |
| 68 | dhcp: true |
| 69 | |
| 70 | admin: |
| 71 | address_pool: admin-pool01 |
| 72 | dhcp: true |
| 73 | forward: |
| 74 | mode: nat |
| 75 | |
| 76 | group_volumes: |
| 77 | - name: cloudimage1404 # This name is used for 'backing_store' option for node volumes. |
| 78 | source_image: !os_env IMAGE_PATH1404 # https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img or |
| 79 | # http://apt.tcpcloud.eu/images/ubuntu-14-04-x64-201608231134.qcow2 |
| 80 | format: qcow2 |
| 81 | - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes. |
| 82 | source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or |
| 83 | # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2 |
| 84 | format: qcow2 |
| 85 | |
| 86 | nodes: |
| 87 | - name: {{ HOSTNAME_CFG01 }} |
| 88 | role: salt_master |
| 89 | params: |
| 90 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 91 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 92 | boot: |
| 93 | - hd |
| 94 | cloud_init_volume_name: iso |
| 95 | cloud_init_iface_up: ens3 |
| 96 | volumes: |
| 97 | - name: system |
| 98 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 99 | backing_store: cloudimage1604 |
| 100 | format: qcow2 |
| 101 | - name: iso # Volume with name 'iso' will be used |
| 102 | # for store image with cloud-init metadata. |
| 103 | capacity: 1 |
| 104 | format: raw |
| 105 | device: cdrom |
| 106 | bus: ide |
Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 107 | cloudinit_meta_data: !include underlay--meta-data.yaml |
| 108 | cloudinit_user_data: !include underlay--user-data-cfg01.yaml |
Tatyana Leontovich | b740459 | 2017-04-07 11:52:28 +0300 | [diff] [blame] | 109 | |
| 110 | interfaces: |
| 111 | - label: ens3 |
| 112 | l2_network_device: admin |
| 113 | interface_model: *interface_model |
| 114 | - label: ens4 |
| 115 | l2_network_device: private |
| 116 | interface_model: *interface_model |
| 117 | network_config: |
| 118 | ens3: |
| 119 | networks: |
| 120 | - admin |
| 121 | ens4: |
| 122 | networks: |
| 123 | - private |
| 124 | |
| 125 | - name: {{ HOSTNAME_CTL01 }} |
| 126 | role: salt_minion |
| 127 | params: |
| 128 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 129 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 130 | boot: |
| 131 | - hd |
| 132 | cloud_init_volume_name: iso |
| 133 | cloud_init_iface_up: ens3 |
| 134 | volumes: |
| 135 | - name: system |
| 136 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 137 | backing_store: cloudimage1604 |
| 138 | format: qcow2 |
| 139 | - name: cinder |
| 140 | capacity: 50 |
| 141 | format: qcow2 |
| 142 | - name: iso # Volume with name 'iso' will be used |
| 143 | # for store image with cloud-init metadata. |
| 144 | capacity: 1 |
| 145 | format: raw |
| 146 | device: cdrom |
| 147 | bus: ide |
Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 148 | cloudinit_meta_data: !include underlay--meta-data.yaml |
| 149 | cloudinit_user_data: !include underlay--user-data1604.yaml |
Tatyana Leontovich | b740459 | 2017-04-07 11:52:28 +0300 | [diff] [blame] | 150 | |
| 151 | interfaces: &interfaces |
| 152 | - label: ens3 |
| 153 | l2_network_device: admin |
| 154 | interface_model: *interface_model |
| 155 | - label: ens4 |
| 156 | l2_network_device: private |
| 157 | interface_model: *interface_model |
| 158 | network_config: &network_config |
| 159 | ens3: |
| 160 | networks: |
| 161 | - admin |
| 162 | ens4: |
| 163 | networks: |
| 164 | - private |
| 165 | |
| 166 | - name: {{ HOSTNAME_CTL02 }} |
| 167 | role: salt_minion |
| 168 | params: |
| 169 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 170 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 171 | boot: |
| 172 | - hd |
| 173 | cloud_init_volume_name: iso |
| 174 | cloud_init_iface_up: ens3 |
| 175 | volumes: |
| 176 | - name: system |
| 177 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 178 | backing_store: cloudimage1604 |
| 179 | format: qcow2 |
| 180 | - name: cinder |
| 181 | capacity: 50 |
| 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 |
Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 189 | cloudinit_meta_data: !include underlay--meta-data.yaml |
| 190 | cloudinit_user_data: !include underlay--user-data1604.yaml |
Tatyana Leontovich | b740459 | 2017-04-07 11:52:28 +0300 | [diff] [blame] | 191 | |
| 192 | interfaces: *interfaces |
| 193 | network_config: *network_config |
| 194 | |
| 195 | - name: {{ HOSTNAME_CTL03 }} |
| 196 | role: salt_minion |
| 197 | params: |
| 198 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 199 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 200 | boot: |
| 201 | - hd |
| 202 | cloud_init_volume_name: iso |
| 203 | cloud_init_iface_up: ens3 |
| 204 | volumes: |
| 205 | - name: system |
| 206 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 207 | backing_store: cloudimage1604 |
| 208 | format: qcow2 |
| 209 | - name: cinder |
| 210 | capacity: 50 |
| 211 | format: qcow2 |
| 212 | - name: iso # Volume with name 'iso' will be used |
| 213 | # for store image with cloud-init metadata. |
| 214 | capacity: 1 |
| 215 | format: raw |
| 216 | device: cdrom |
| 217 | bus: ide |
Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 218 | cloudinit_meta_data: !include underlay--meta-data.yaml |
| 219 | cloudinit_user_data: !include underlay--user-data1604.yaml |
Tatyana Leontovich | b740459 | 2017-04-07 11:52:28 +0300 | [diff] [blame] | 220 | |
| 221 | interfaces: *interfaces |
| 222 | network_config: *network_config |
| 223 | |
| 224 | - name: {{ HOSTNAME_CMP01 }} |
| 225 | role: salt_minion |
| 226 | params: |
| 227 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 228 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 229 | boot: |
| 230 | - hd |
| 231 | cloud_init_volume_name: iso |
| 232 | cloud_init_iface_up: ens3 |
| 233 | volumes: |
| 234 | - name: system |
| 235 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 236 | backing_store: cloudimage1604 |
| 237 | format: qcow2 |
| 238 | - name: iso # Volume with name 'iso' will be used |
| 239 | # for store image with cloud-init metadata. |
| 240 | capacity: 1 |
| 241 | format: raw |
| 242 | device: cdrom |
| 243 | bus: ide |
Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 244 | cloudinit_meta_data: !include underlay--meta-data.yaml |
| 245 | cloudinit_user_data: !include underlay--user-data1604.yaml |
Tatyana Leontovich | b740459 | 2017-04-07 11:52:28 +0300 | [diff] [blame] | 246 | |
| 247 | |
| 248 | interfaces: &all_interfaces |
| 249 | - label: ens3 |
| 250 | l2_network_device: admin |
| 251 | interface_model: *interface_model |
| 252 | - label: ens4 |
| 253 | l2_network_device: private |
| 254 | interface_model: *interface_model |
| 255 | network_config: &all_network_config |
| 256 | ens3: |
| 257 | networks: |
| 258 | - admin |
| 259 | ens4: |
| 260 | networks: |
| 261 | - private |
| 262 | |
| 263 | - name: {{ HOSTNAME_CMP02 }} |
| 264 | role: salt_minion |
| 265 | params: |
| 266 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 267 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 268 | boot: |
| 269 | - hd |
| 270 | cloud_init_volume_name: iso |
| 271 | cloud_init_iface_up: ens3 |
| 272 | volumes: |
| 273 | - name: system |
| 274 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 275 | backing_store: cloudimage1604 |
| 276 | format: qcow2 |
| 277 | - name: iso # Volume with name 'iso' will be used |
| 278 | # for store image with cloud-init metadata. |
| 279 | capacity: 1 |
| 280 | format: raw |
| 281 | device: cdrom |
| 282 | bus: ide |
Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 283 | cloudinit_meta_data: !include underlay--meta-data.yaml |
| 284 | cloudinit_user_data: !include underlay--user-data1604.yaml |
Tatyana Leontovich | b740459 | 2017-04-07 11:52:28 +0300 | [diff] [blame] | 285 | |
| 286 | interfaces: *all_interfaces |
| 287 | network_config: *all_network_config |