dcfa3a38937e9beffc5223bbc4347d175689174f
[joid.git] / ci / maas / 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']
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/next
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://ubuntu@10.4.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.4.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: 10.4.0.2
49             maas_name: intelpod5
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.4.1.2
71             netmask 255.255.248.0
72             network 10.4.0.0
73             broadcast 10.4.7.255
74             gateway 10.4.0.1
75             dns-nameservers 10.4.0.2 127.0.0.1
76
77             auto eth1
78             iface eth1 inet static
79             address 10.4.9.2
80             netmask 255.255.248.0
81             network 10.4.8.0
82             broadcast 10.4.15.255
83
84             auto eth2
85             iface eth2 inet static
86             address 10.2.65.3
87             netmask 255.255.255.0
88             network 10.2.65.0
89             broadcast 10.2.65.255
90             #auto lo
91             #iface lo inet loopback
92
93             #auto eth0
94             #iface eth0 inet static
95             #  address 192.168.122.2
96             #  netmask 255.255.248.0
97             #  network 192.168.122.0
98             #  broadcast 192.168.122.255
99             #  gateway 192.168.122.1
100             #  dns-nameservers 192.168.122.1 127.0.0.1
101
102         # The node-group-interfaces section is used to configure the MAAS
103         # network interfaces. Basic configuration is supported, such as which
104         # device should be bound, the range of IP addresses, etc.
105         # Note: this may contain the special identifiers:
106         #   ${maas_net} - the first 3 octets of the ipv4 address
107         #   ${maas_ip} - the ip address of the MAAS controller 
108         node_group_ifaces:
109             - device: eth0
110               ip: 10.4.1.2
111               subnet_mask: 255.255.248.0
112               broadcast_ip: 10.4.7.255
113               router_ip: 10.4.0.1
114               static_range:
115                   low: 10.4.2.20
116                   high: 10.4.2.254
117               dynamic_range:
118                   low: 10.4.1.50
119                   high: 10.4.1.254
120             - device: eth1
121               ip: 10.4.9.2
122               subnet_mask: 255.255.255.0
123               broadcast_ip: 10.4.9.255
124               management: 1
125               static_range:
126                   low: 10.4.9.20
127                   high: 10.4.9.100
128               dynamic_range:
129                   low: 10.4.9.101
130                   high: 10.4.9.200
131             - device: eth2
132               ip: 10.2.65.3
133               subnet_mask: 255.255.255.0
134               broadcast_ip: 10.2.65.255
135               management: 1
136               static_range:
137                   low: 10.2.65.20
138                   high: 10.2.65.100
139               dynamic_range:
140                   low: 10.2.65.101
141                   high: 10.2.65.200
142         # Defines the physical nodes which are added to the MAAS cluster
143         # controller upon startup of the node.
144         nodes:
145             - name: node6-control
146               tags: control
147               architecture: amd64/generic
148               mac_addresses:
149                   - "00:15:17:ac:3b:b4"
150               power:
151                   type: ipmi
152                   address: 10.4.7.6
153                   user: root
154                   pass: root
155                   driver: LAN_2_0
156
157             - name: node5-compute
158               tags: compute
159               architecture: amd64/generic
160               mac_addresses:
161                   - "00:1e:67:e0:0a:4a"
162               power:
163                   type: ipmi
164                   address: 10.4.7.5
165                   user: root
166                   pass: root
167                   driver: LAN_2_0
168 #              sticky_ip_address:
169 #                  mac_address: "38:63:bb:43:b8:9c"
170 #                  requested_address: 192.168.122.5
171                 
172             - name: node4-compute
173               tags: compute
174               architecture: amd64/generic
175               mac_addresses:
176                   - "00:1e:67:e0:08:b0"
177               power:
178                   type: ipmi
179                   address: 10.4.7.4
180                   user: root
181                   pass: root
182                   driver: LAN_2_0
183 #              sticky_ip_address:
184 #                  mac_address: "38:63:bb:43:b8:9c"
185 #                  requested_address: 192.168.122.5
186
187             - name: node3-control
188               tags: control
189               architecture: amd64/generic
190               mac_addresses:
191                   - "00:1e:67:e0:08:7e"
192               power:
193                   type: ipmi
194                   address: 10.4.7.3
195                   user: root
196                   pass: root
197                   driver: LAN_2_0
198 #              sticky_ip_address:
199 #                  mac_address: "38:63:bb:43:b8:9c"
200 #                  requested_address: 192.168.122.5
201
202             - name: node2-control
203               tags: control
204               architecture: amd64/generic
205               mac_addresses:
206                   - "00:1e:67:cf:b8:92"
207               power:
208                   type: ipmi
209                   address: 10.4.7.2
210                   user: root
211                   pass: root
212                   driver: LAN_2_0
213 #              sticky_ip_address:
214 #                  mac_address: "38:63:bb:43:b8:9c"
215 #                  requested_address: 192.168.122.5
216
217 #            - name: jenkins-slave
218 #              tags: jenkins-slave
219 #              architecture: amd64/generic
220 #              mac_addresses:
221 #                  - "52:54:00:f0:5c:53"
222 #              power:
223 #                  type: virsh
224 #                  address: qemu+ssh://ubuntu@10.4.1.1/system
225
226     # Contains the virtual machine parameters for creating the Juju bootstrap
227     # node virtual machine
228     juju-bootstrap:
229         name: bootstrap
230         interfaces: ['bridge=brAdm,model=virtio','bridge=brPublic,model=virtio']
231         memory: 4096
232         vcpus: 4
233         arch: amd64
234         pool: default
235         disk_size: 120G