blob: f21fc1750cadab4a68ea9ee1f23b79bb21130783 [file] [log] [blame]
Dennis Dmitriev2a13a132016-11-04 00:56:23 +02001---
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:
11 env_name: !os_env ENV_NAME, tcpcloud-mk22
12
13 address_pools:
disc5298382016-11-23 16:03:33 +020014 admin-pool01:
Dennis Dmitriev2a13a132016-11-04 00:56:23 +020015 net: 172.16.10.0/24:24
16 params:
17 ip_reserved:
18 gateway: +1
19 l2_network_device: +1
20 default_cfg01.mk22-lab-basic.local: +100
21 default_ctl01.mk22-lab-basic.local: +101
22 default_ctl02.mk22-lab-basic.local: +102
23 default_ctl03.mk22-lab-basic.local: +103
24 default_prx01.mk22-lab-basic.local: +121
25 default_cmp01.mk22-lab-basic.local: +105
26 ip_ranges:
27 dhcp: [+100, -2]
28
29 private-pool01:
30 net: 192.168.10.0/24:24
31 params:
32 ip_reserved:
33 gateway: +1
34 l2_network_device: +1
35 default_cfg01.mk22-lab-basic.local: +100
36 default_ctl01.mk22-lab-basic.local: +101
37 default_ctl02.mk22-lab-basic.local: +102
38 default_ctl03.mk22-lab-basic.local: +103
39 default_prx01.mk22-lab-basic.local: +121
40 default_cmp01.mk22-lab-basic.local: +105
41 ip_ranges:
42 dhcp: [+100, -2]
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:
disc5298382016-11-23 16:03:33 +020057 admin: admin-pool01
Dennis Dmitriev2a13a132016-11-04 00:56:23 +020058 private: private-pool01
59
60 l2_network_devices:
disc5298382016-11-23 16:03:33 +020061 admin:
62 address_pool: admin-pool01
Dennis Dmitriev2a13a132016-11-04 00:56:23 +020063 dhcp: true
64# forward:
65# mode: nat
66
67 private:
68 address_pool: private-pool01
69 dhcp: true
70 forward:
71 mode: nat
72
73 group_volumes:
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
76 # http://apt.tcpcloud.eu/images/ubuntu-14-04-x64-201608231134.qcow2
77 format: qcow2
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
82
83 nodes:
84 - name: cfg01.mk22-lab-basic.local
85 role: salt_master
86 params:
87 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +020088 memory: !os_env SLAVE_NODE_MEMORY, 2048
Dennis Dmitriev2a13a132016-11-04 00:56:23 +020089 boot:
90 - hd
91 cloud_init_volume_name: iso
92 cloud_init_iface_up: ens3
93 volumes:
94 - name: system
95 capacity: !os_env NODE_VOLUME_SIZE, 150
96 backing_store: cloudimage1604
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
104 cloudinit_meta_data: !include mk22-lab-basic--meta-data.yaml
105 cloudinit_user_data: !include mk22-lab-basic--user-data-cfg01.yaml
106
107 interfaces:
108 - label: ens3
109 l2_network_device: private
110 interface_model: *interface_model
111 - label: ens4
disc5298382016-11-23 16:03:33 +0200112 l2_network_device: admin
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200113 interface_model: *interface_model
114 network_config:
115 ens3:
116 networks:
117 - private
118 ens4:
119 networks:
disc5298382016-11-23 16:03:33 +0200120 - admin
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200121
122 - name: ctl01.mk22-lab-basic.local
123 role: salt_minion
124 params:
125 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200126 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200127 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
134 backing_store: cloudimage1404
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
142 cloudinit_meta_data: !include mk22-lab-basic--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200143 cloudinit_user_data: !include mk22-lab-basic--user-data1404.yaml
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200144
145 interfaces: &interfaces
146 - label: eth0
147 l2_network_device: private
148 interface_model: *interface_model
149 - label: eth1
disc5298382016-11-23 16:03:33 +0200150 l2_network_device: admin
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200151 interface_model: *interface_model
152 network_config: &network_config
153 eth0:
154 networks:
155 - private
156 eth1:
157 networks:
disc5298382016-11-23 16:03:33 +0200158 - admin
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200159
160 - name: ctl02.mk22-lab-basic.local
161 role: salt_minion
162 params:
163 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200164 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200165 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
172 backing_store: cloudimage1404
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
180 cloudinit_meta_data: !include mk22-lab-basic--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200181 cloudinit_user_data: !include mk22-lab-basic--user-data1404.yaml
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200182
183 interfaces: *interfaces
184 network_config: *network_config
185
186 - name: ctl03.mk22-lab-basic.local
187 role: salt_minion
188 params:
189 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200190 memory: !os_env SLAVE_NODE_MEMORY, 8192
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200191 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
198 backing_store: cloudimage1404
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
206 cloudinit_meta_data: !include mk22-lab-basic--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200207 cloudinit_user_data: !include mk22-lab-basic--user-data1404.yaml
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200208
209 interfaces: *interfaces
210 network_config: *network_config
211
212 - name: cmp01.mk22-lab-basic.local
213 role: salt_minion
214 params:
215 vcpu: !os_env SLAVE_NODE_CPU, 4
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200216 memory: !os_env SLAVE_NODE_MEMORY, 4096
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200217 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
224 backing_store: cloudimage1404
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
232 cloudinit_meta_data: !include mk22-lab-basic--meta-data.yaml
Dennis Dmitriev9bcda482016-11-04 15:01:53 +0200233 cloudinit_user_data: !include mk22-lab-basic--user-data1404.yaml
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200234
235 interfaces: *interfaces
236 network_config: *network_config