modified the public network as per new config changes.
[joid.git] / ci / maas / intel / pod6 / 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
21         # Apt http proxy setting(s)
22         apt_http_proxy:
23
24         apt_sources:
25           - ppa:maas/stable
26           - ppa:juju/stable
27
28         # Virsh power settings
29         # Specifies the uri and keys to use for virsh power control of the 
30         # juju virtual machine. If the uri is omitted, the value for the
31         # --remote is used. If no power settings are desired, then do not
32         # supply the virsh block.
33         virsh:
34             rsa_priv_key: /home/ubuntu/.ssh/id_rsa
35             rsa_pub_key: /home/ubuntu/.ssh/id_rsa.pub
36             uri: qemu+ssh://jenkins@10.6.1.1/system
37
38         # Defines the IP Address that the configuration script will use to
39         # to access the MAAS controller via SSH.
40         ip_address: 10.6.1.2
41
42         # This section allows the user to set a series of options on the
43         # MAAS server itself. The list of config options can be found in
44         # the upstream MAAS documentation:
45         #  - http://maas.ubuntu.com/docs/api.html#maas-server
46         settings:
47             main_archive: http://us.archive.ubuntu.com/ubuntu
48             upstream_dns: 8.8.8.8
49             maas_name: intelpod6
50             # kernel_opts: "console=tty0 console=ttyS1,115200n8"
51             # ntp_server: ntp.ubuntu.com
52
53         # This section is used to define the networking parameters for when
54         # the node first comes up. It is fed into the meta-data cloud-init
55         # configuration and is used to configure the networking piece of the
56         # service. The contents of this section are written directly to the
57         # /etc/network/interfaces file.
58         #
59         # Please note, this is slightly different than the
60         # node-group-interfaces section below. This will configure the
61         # machine's networking params, and the node-group-interfaces will
62         # configure the maas node-group interfaces which is used for
63         # controlling the dhcp, dns, etc.
64         network_config: |
65             auto lo
66             iface lo inet loopback
67
68             auto eth0
69             iface eth0 inet static
70             address 10.6.1.2
71             netmask 255.255.255.0
72             network 10.6.1.0
73             broadcast 10.6.1.255
74             gateway 10.6.1.1
75             dns-nameservers 8.8.8.8 10.6.1.2 127.0.0.1
76
77             auto eth1
78             iface eth1 inet static
79             address 10.6.12.2
80             netmask 255.255.255.0
81
82             auto eth2
83             iface eth2 inet static
84             address 10.6.15.2
85             netmask 255.255.255.0
86
87             auto eth3
88             iface eth3 inet static
89             address 10.2.117.107
90             netmask 255.255.255.0
91             #auto lo
92             #iface lo inet loopback
93
94             #auto eth0
95             #iface eth0 inet static
96             #  address 192.168.122.2
97             #  netmask 255.255.248.0
98             #  network 192.168.122.0
99             #  broadcast 192.168.122.255
100             #  gateway 192.168.122.1
101             #  dns-nameservers 192.168.122.1 127.0.0.1
102
103         # The node-group-interfaces section is used to configure the MAAS
104         # network interfaces. Basic configuration is supported, such as which
105         # device should be bound, the range of IP addresses, etc.
106         # Note: this may contain the special identifiers:
107         #   ${maas_net} - the first 3 octets of the ipv4 address
108         #   ${maas_ip} - the ip address of the MAAS controller 
109         node_group_ifaces:
110             - device: eth0
111               ip: 10.6.1.2
112               subnet_mask: 255.255.255.0
113               broadcast_ip: 10.6.1.255
114               router_ip: 10.6.1.1
115               static_range:
116                   low: 10.6.1.50
117                   high: 10.6.1.80
118               dynamic_range:
119                   low: 10.6.1.81
120                   high: 10.6.1.250
121             - device: eth1
122               ip: 10.6.12.2
123               subnet_mask: 255.255.255.0
124               broadcast_ip: 10.6.12.255
125               management: 1
126               static_range:
127                   low: 10.6.12.20
128                   high: 10.6.12.150
129               dynamic_range:
130                   low: 10.6.12.151
131                   high: 10.6.12.200
132             - device: eth2
133               ip: 10.6.15.2
134               subnet_mask: 255.255.255.0
135               broadcast_ip: 10.6.15.255
136               management: 1
137               static_range:
138                   low: 10.6.15.20
139                   high: 10.6.15.150
140               dynamic_range:
141                   low: 10.6.15.151
142                   high: 10.6.15.200
143
144         # Defines the physical nodes which are added to the MAAS cluster
145         # controller upon startup of the node.
146         nodes:
147             - name: node1-control
148               tags: control
149               architecture: amd64/generic
150               mac_addresses:
151                   - "00:1e:67:d8:ba:46"
152               power:
153                   type: ipmi
154                   address: 10.2.117.96
155                   user: root
156                   pass: root
157                   driver: LAN_2_0
158 #              sticky_ip_address:
159 #                  mac_address: "38:63:bb:43:b8:9c"
160 #                  requested_address: 192.168.122.5
161
162             - name: node2-control
163               tags: control
164               architecture: amd64/generic
165               mac_addresses:
166                   - "00:1e:67:e0:0b:72"
167               power:
168                   type: ipmi
169                   address: 10.2.117.97
170                   user: root
171                   pass: root
172                   driver: LAN_2_0
173 #              sticky_ip_address:
174 #                  mac_address: "38:63:bb:43:b8:9c"
175 #                  requested_address: 192.168.122.5
176                 
177             - name: node3-control
178               tags: control
179               architecture: amd64/generic
180               mac_addresses:
181                   - "00:1e:67:e0:09:33"
182               power:
183                   type: ipmi
184                   address: 10.2.117.98
185                   user: root
186                   pass: root
187                   driver: LAN_2_0
188 #              sticky_ip_address:
189 #                  mac_address: "38:63:bb:43:b8:9c"
190 #                  requested_address: 192.168.122.5
191
192             - name: node4-compute
193               tags: compute
194               architecture: amd64/generic
195               mac_addresses:
196                   - "00:1e:67:e0:09:fb"
197               power:
198                   type: ipmi
199                   address: 10.2.117.99
200                   user: root
201                   pass: root
202                   driver: LAN_2_0
203 #              sticky_ip_address:
204 #                  mac_address: "38:63:bb:43:b8:9c"
205 #                  requested_address: 192.168.122.5
206
207             - name: node5-compute
208               tags: compute
209               architecture: amd64/generic
210               mac_addresses:
211                   - "00:1e:67:cf:bc:f8"
212               power:
213                   type: ipmi
214                   address: 10.2.117.100
215                   user: root
216                   pass: root
217                   driver: LAN_2_0
218 #              sticky_ip_address:
219 #                  mac_address: "38:63:bb:43:b8:9c"
220 #                  requested_address: 192.168.122.5
221
222 #            - name: jenkins-slave
223 #              tags: jenkins-slave
224 #              architecture: amd64/generic
225 #              mac_addresses:
226 #                  - "52:54:00:f0:5c:53"
227 #              power:
228 #                  type: virsh
229 #                  address: qemu+ssh://ubuntu@10.4.1.1/system
230
231     # Contains the virtual machine parameters for creating the Juju bootstrap
232     # node virtual machine
233     juju-bootstrap:
234         name: bootstrap
235         interfaces: ['bridge=brAdm,model=virtio', 'bridge=brPublic,model=virtio', 'bridge=brExt,model=virtio']
236         memory: 4096
237         vcpus: 4
238         arch: amd64
239         pool: default
240         disk_size: 120G