blob: 4c011eba79b5e462c4aeab0e13aff61a9a12fc69 [file] [log] [blame]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +03001---
2aliases:
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
9template:
10 devops_settings:
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +030011 env_name: !os_env ENV_NAME, tcpcloud-mk22
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030012
13 address_pools:
14 public-pool01:
Dennis Dmitriev45738b92016-10-20 18:11:15 +030015 net: 172.16.10.0/24:24
16 params:
17 ip_reserved:
18 gateway: +1
19 l2_network_device: +1
Dennis Dmitriev3bf410e2016-10-26 20:22:04 +030020 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 Dmitriev23e5d192016-10-31 11:27:10 +020024 default_prx01.mk22-lab-advanced.local: +104
Dennis Dmitriev3bf410e2016-10-26 20:22:04 +030025 default_cmp01.mk22-lab-advanced.local: +105
Dennis Dmitriev45738b92016-10-20 18:11:15 +030026 ip_ranges:
27 dhcp: [+100, -2]
28
29 private-pool01:
30 net: 192.168.10.0/24:24
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030031 params:
32 ip_reserved:
33 gateway: +1
34 l2_network_device: +1
35 ip_ranges:
Dennis Dmitriev44d6f142016-10-18 15:51:33 +030036 dhcp: [+100, -2]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030037
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 Dmitriev45738b92016-10-20 18:11:15 +030052 private: private-pool01
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030053
54 l2_network_devices:
55 public:
56 address_pool: public-pool01
57 dhcp: true
58 forward:
59 mode: nat
60
61 private:
Dennis Dmitriev45738b92016-10-20 18:11:15 +030062 address_pool: private-pool01
63 dhcp: true
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030064
65 group_volumes:
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +030066 - 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 Dmitriev6f59add2016-10-18 13:45:27 +030068 # http://apt.tcpcloud.eu/images/ubuntu-14-04-x64-201608231134.qcow2
69 format: qcow2
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +030070 - 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 Dmitriev6f59add2016-10-18 13:45:27 +030074
75 nodes:
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +030076 - name: cfg01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +030077 role: salt_master
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030078 params:
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +030079 vcpu: !os_env SLAVE_NODE_CPU, 4
80 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030081 boot:
82 - hd
83 cloud_init_volume_name: iso
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +020084 cloud_init_iface_up: ens3
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030085 volumes:
86 - name: system
87 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +030088 backing_store: cloudimage1604
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030089 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 Dmitriev010f4cd2016-11-01 20:43:51 +020096 cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml
97 cloudinit_user_data: !include mk22-lab-advanced--user-data-cfg01.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030098
99 interfaces:
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200100 - label: ens3
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300101 l2_network_device: public
102 interface_model: *interface_model
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200103 - label: ens4
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300104 l2_network_device: private
105 interface_model: *interface_model
106 network_config:
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200107 ens3:
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300108 networks:
109 - public
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200110 ens4:
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300111 networks:
112 - private
113
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300114 - name: ctl01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300115 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300116 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 Dmitriev7080d8d2016-10-26 13:43:37 +0300126 backing_store: cloudimage1404
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300127 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 Dmitriev010f4cd2016-11-01 20:43:51 +0200134 cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml
135 cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300136
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200137 interfaces: &interfaces
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300138 - 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 Dmitriev010f4cd2016-11-01 20:43:51 +0200144 network_config: &network_config
145 eth0:
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300146 networks:
147 - public
148 eth1:
149 networks:
150 - private
151
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300152 - name: ctl02.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300153 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300154 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 Dmitriev7080d8d2016-10-26 13:43:37 +0300164 backing_store: cloudimage1404
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300165 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 Dmitriev010f4cd2016-11-01 20:43:51 +0200172 cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml
173 cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300174
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200175 interfaces: *interfaces
176 network_config: *network_config
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300177
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300178 - name: ctl03.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300179 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300180 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 Dmitriev7080d8d2016-10-26 13:43:37 +0300190 backing_store: cloudimage1404
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300191 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 Dmitriev010f4cd2016-11-01 20:43:51 +0200198 cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml
199 cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300200
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200201 interfaces: *interfaces
202 network_config: *network_config
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300203
Dennis Dmitriev23e5d192016-10-31 11:27:10 +0200204 - name: prx01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300205 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300206 params:
Dennis Dmitriev95126792016-10-18 17:03:30 +0300207 vcpu: !os_env SLAVE_NODE_CPU, 1
208 memory: !os_env SLAVE_NODE_MEMORY, 2048
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300209 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 Dmitriev7080d8d2016-10-26 13:43:37 +0300216 backing_store: cloudimage1404
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300217 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 Dmitriev010f4cd2016-11-01 20:43:51 +0200224 cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml
225 cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300226
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200227 interfaces: *interfaces
228 network_config: *network_config
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300229
Dennis Dmitriev0ebe9f32016-10-25 11:01:44 +0300230 - name: cmp01.mk22-lab-advanced.local
Dennis Dmitrievb5d74242016-10-18 14:05:29 +0300231 role: salt_minion
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300232 params:
Dennis Dmitriev95126792016-10-18 17:03:30 +0300233 vcpu: !os_env SLAVE_NODE_CPU, 4
234 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300235 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 Dmitriev7080d8d2016-10-26 13:43:37 +0300242 backing_store: cloudimage1404
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300243 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 Dmitriev010f4cd2016-11-01 20:43:51 +0200250 cloudinit_meta_data: !include mk22-lab-advanced--meta-data.yaml
251 cloudinit_user_data: !include mk22-lab-advanced--user-data.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +0300252
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +0200253 interfaces: *interfaces
254 network_config: *network_config