modified to give proper naming convention for floating ip network.
[joid.git] / labconfig / intel / pod5 / deployment.yaml
1 # This file defines the deployment for the MAAS environment which is to be
2 # deployed and automated.
3 demo-maas:
4     maas:
5         # Defines the general setup for the MAAS environment, including the
6         # username and password for the host as well as the MAAS server.
7         user: ubuntu
8         password: ubuntu
9
10         # Contains the virtual machine parameters for creating the MAAS virtual
11         # server. Here you can configure the name of the virsh domain, the
12         # parameters for how the network is attached.
13         name: opnfv-maas-intel
14         interfaces: ['bridge=brAdm,model=virtio', 'bridge=brData,model=virtio', 'bridge=brPublic,model=virtio', 'bridge=brExt,model=virtio']
15         memory: 4096
16         vcpus: 4
17         arch: amd64
18         pool: default
19         disk_size: 160G
20         release: trusty
21
22         # Apt http proxy setting(s)
23         apt_http_proxy:
24
25         apt_sources:
26           - ppa:maas/stable
27           - ppa:juju/stable
28
29         boot_source:
30             url: http://maas.ubuntu.com/images/ephemeral-v2/daily/
31             keyring_filename: /usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
32             exclusive: true
33             selections:
34                 1:
35                     release: trusty
36                     os: ubuntu
37                     arches: amd64
38                     subarches: "*"
39                     labels: daily
40                 2:
41                     release: xenial
42                     os: ubuntu
43                     arches: amd64
44                     subarches: "*"
45                     labels: daily
46
47         # Virsh power settings
48         # Specifies the uri and keys to use for virsh power control of the 
49         # juju virtual machine. If the uri is omitted, the value for the
50         # --remote is used. If no power settings are desired, then do not
51         # supply the virsh block.
52         virsh:
53             rsa_priv_key: /home/ubuntu/.ssh/id_rsa
54             rsa_pub_key: /home/ubuntu/.ssh/id_rsa.pub
55             uri: qemu+ssh://jenkins@10.5.1.1/system
56
57         # Defines the IP Address that the configuration script will use to
58         # to access the MAAS controller via SSH.
59         ip_address: 10.5.1.2
60
61         # This section allows the user to set a series of options on the
62         # MAAS server itself. The list of config options can be found in
63         # the upstream MAAS documentation:
64         #  - http://maas.ubuntu.com/docs/api.html#maas-server
65         settings:
66             main_archive: http://us.archive.ubuntu.com/ubuntu
67             upstream_dns: 8.8.8.8
68             maas_name: intelpod5
69             # kernel_opts: "console=tty0 console=ttyS1,115200n8"
70             # ntp_server: ntp.ubuntu.com
71
72         # This section is used to define the networking parameters for when
73         # the node first comes up. It is fed into the meta-data cloud-init
74         # configuration and is used to configure the networking piece of the
75         # service. The contents of this section are written directly to the
76         # /etc/network/interfaces file.
77         #
78         # Please note, this is slightly different than the
79         # node-group-interfaces section below. This will configure the
80         # machine's networking params, and the node-group-interfaces will
81         # configure the maas node-group interfaces which is used for
82         # controlling the dhcp, dns, etc.
83         network_config: |
84             auto lo
85             iface lo inet loopback
86
87             auto eth0
88             iface eth0 inet static
89             address 10.5.1.2
90             netmask 255.255.255.0
91             network 10.5.1.0
92             broadcast 10.5.1.255
93             gateway 10.5.1.1
94             dns-nameservers 8.8.8.8 10.5.1.2 127.0.0.1
95
96             auto eth1
97             iface eth1 inet static
98             address 10.5.12.2
99             netmask 255.255.255.0
100
101             auto eth2
102             iface eth2 inet static
103             address 10.5.15.2
104             netmask 255.255.255.0
105
106             auto eth3
107             iface eth3 inet static
108             address 10.2.117.92
109             netmask 255.255.255.0
110             #auto lo
111             #iface lo inet loopback
112
113             #auto eth0
114             #iface eth0 inet static
115             #  address 192.168.122.2
116             #  netmask 255.255.248.0
117             #  network 192.168.122.0
118             #  broadcast 192.168.122.255
119             #  gateway 192.168.122.1
120             #  dns-nameservers 192.168.122.1 127.0.0.1
121
122         # The node-group-interfaces section is used to configure the MAAS
123         # network interfaces. Basic configuration is supported, such as which
124         # device should be bound, the range of IP addresses, etc.
125         # Note: this may contain the special identifiers:
126         #   ${maas_net} - the first 3 octets of the ipv4 address
127         #   ${maas_ip} - the ip address of the MAAS controller 
128         node_group_ifaces:
129             - device: eth0
130               ip: 10.5.1.2
131               subnet_mask: 255.255.255.0
132               broadcast_ip: 10.5.1.255
133               router_ip: 10.5.1.1
134               static_range:
135                   low: 10.5.1.50
136                   high: 10.5.1.80
137               dynamic_range:
138                   low: 10.5.1.81
139                   high: 10.5.1.250
140             - device: eth1
141               ip: 10.5.12.2
142               subnet_mask: 255.255.255.0
143               broadcast_ip: 10.5.12.255
144               management: 1
145               static_range:
146                   low: 10.5.12.20
147                   high: 10.5.12.150
148               dynamic_range:
149                   low: 10.5.12.151
150                   high: 10.5.12.200
151             - device: eth2
152               ip: 10.5.15.2
153               subnet_mask: 255.255.255.0
154               broadcast_ip: 10.5.15.255
155               router_ip: 10.5.15.254
156               management: 1
157               static_range:
158                   low: 10.5.15.20
159                   high: 10.5.15.150
160               dynamic_range:
161                   low: 10.5.15.151
162                   high: 10.5.15.200
163
164         # Defines the physical nodes which are added to the MAAS cluster
165         # controller upon startup of the node.
166         nodes:
167             - name: node1-control
168               tags: control
169               architecture: amd64/generic
170               mac_addresses:
171                   - "00:1e:67:cf:bb:54"
172               power:
173                   type: ipmi
174                   address: 10.2.117.81
175                   user: root
176                   pass: root
177                   driver: LAN_2_0
178 #              sticky_ip_address:
179 #                  mac_address: "38:63:bb:43:b8:9c"
180 #                  requested_address: 192.168.122.5
181 #
182             - name: node2-control
183               tags: control
184               architecture: amd64/generic
185               mac_addresses:
186                   - "00:1e:67:cf:b8:93"
187               power:
188                   type: ipmi
189                   address: 10.2.117.82
190                   user: root
191                   pass: root
192                   driver: LAN_2_0
193
194             - name: node3-control
195               tags: control
196               architecture: amd64/generic
197               mac_addresses:
198                   - "00:1e:67:e0:08:7f"
199               power:
200                   type: ipmi
201                   address: 10.2.117.83
202                   user: root
203                   pass: root
204                   driver: LAN_2_0
205 #              sticky_ip_address:
206 #                  mac_address: "38:63:bb:43:b8:9c"
207 #                  requested_address: 192.168.122.5
208
209             - name: node4-compute
210               tags: compute
211               architecture: amd64/generic
212               mac_addresses:
213                   - "00:1e:67:e0:08:b1"
214               power:
215                   type: ipmi
216                   address: 10.2.117.84
217                   user: root
218                   pass: root
219                   driver: LAN_2_0
220 #              sticky_ip_address:
221 #                  mac_address: "38:63:bb:43:b8:9c"
222 #                  requested_address: 192.168.122.5
223
224             - name: node5-compute
225               tags: compute
226               architecture: amd64/generic
227               mac_addresses:
228                   - "00:1e:67:e0:0a:4b"
229               power:
230                   type: ipmi
231                   address: 10.2.117.85
232                   user: root
233                   pass: root
234                   driver: LAN_2_0
235 #              sticky_ip_address:
236 #                  mac_address: "38:63:bb:43:b8:9c"
237 #                  requested_address: 192.168.122.5
238
239 #            - name: jenkins-slave
240 #              tags: jenkins-slave
241 #              architecture: amd64/generic
242 #              mac_addresses:
243 #                  - "52:54:00:f0:5c:53"
244 #              power:
245 #                  type: virsh
246 #                  address: qemu+ssh://ubuntu@10.4.1.1/system
247
248     # Contains the virtual machine parameters for creating the Juju bootstrap
249     # node virtual machine
250     juju-bootstrap:
251         name: bootstrap
252         interfaces: ['bridge=brAdm,model=virtio', 'bridge=brPublic,model=virtio', 'bridge=brExt,model=virtio']
253         memory: 4096
254         vcpus: 4
255         arch: amd64
256         pool: default
257         disk_size: 120G