d035f78e946739d446e3080bdfa7ba601cc0b642
[joid.git] / ci / maas / orange / pod2 / 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-orange
14         interfaces: ['bridge=brAdm,model=virtio', 'bridge=brData,model=virtio', 'bridge=brStorage,model=virtio']
15         memory: 4096
16         vcpus: 4
17         arch: amd64
18         pool: default
19         disk_size: 120G
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://ubuntu@192.168.2.4/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: 192.168.2.5
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://fr.archive.ubuntu.com/ubuntu
48             upstream_dns: 192.168.2.1
49             maas_name: orangepod2
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 192.168.2.5
71             netmask 255.255.255.0
72             network 192.168.2.0
73             broadcast 192.168.2.255
74             gateway 192.168.2.1
75             dns-nameservers 192.168.2.1 127.0.0.1
76
77             auto eth1
78             iface eth1 inet static
79             address 192.168.12.5
80             netmask 255.255.255.0
81             network 192.168.12.0
82             broadcast 192.168.12.255
83
84             auto eth2
85             iface eth2 inet static
86             address 192.168.22.5
87             netmask 255.255.255.0
88             network 192.168.22.0
89             broadcast 192.168.22.255
90
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: 192.168.2.5
112               subnet_mask: 255.255.255.0
113               broadcast_ip: 192.168.2.255
114               router_ip: 192.168.2.1
115               static_range:
116                   low: 192.168.2.50
117                   high: 192.168.2.99
118               dynamic_range:
119                   low: 192.168.2.100
120                   high: 192.168.2.200
121             - device: eth1
122               ip: 192.168.12.5
123               subnet_mask: 255.255.255.0
124               broadcast_ip: 192.168.12.255
125               management: 1
126               static_range:
127                   low: 192.168.12.50
128                   high: 192.168.12.99
129               dynamic_range:
130                   low: 192.168.12.100
131                   high: 192.168.12.200
132             - device: eth2
133               ip: 192.168.22.5
134               subnet_mask: 255.255.255.0
135               broadcast_ip: 192.168.22.255
136               management: 1
137               static_range:
138                   low: 192.168.22.50
139                   high: 192.168.22.99
140               dynamic_range:
141                   low: 192.168.22.100
142                   high: 192.168.22.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-compute
148               tags: compute
149               architecture: amd64/generic
150               mac_addresses:
151                   - "38:63:bb:3f:bc:c8"
152               power:
153                   type: ipmi
154                   address: 192.168.2.11
155                   user: Administrator
156                   pass: pod2Admin
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-compute
163               tags: compute
164               architecture: amd64/generic
165               mac_addresses:
166                   - "38:63:bb:44:34:84"
167               power:
168                   type: ipmi
169                   address: 192.168.2.12
170                   user: Administrator
171                   pass: pod2Admin
172                   driver: LAN_2_0
173
174             - name: node3-compute
175               tags: compute
176               architecture: amd64/generic
177               mac_addresses:
178                   - "38:63:bb:3f:1d:8c"
179               power:
180                   type: ipmi
181                   address: 192.168.2.13
182                   user: Administrator
183                   pass: pod2Admin
184                   driver: LAN_2_0
185
186             - name: node4-compute
187               tags: compute
188               architecture: amd64/generic
189               mac_addresses:
190                   - "38:63:bb:3f:2d:a8"
191               power:
192                   type: ipmi
193                   address: 192.168.2.14
194                   user: Administrator
195                   pass: pod2Admin
196                   driver: LAN_2_0
197
198             - name: node5-control
199               tags: control
200               architecture: amd64/generic
201               mac_addresses:
202                   - "94:57:a5:52:c9:48"
203               power:
204                   type: ipmi
205                   address: 192.168.2.15
206                   user: Administrator
207                   pass: pod2Admin
208                   driver: LAN_2_0
209
210             - name: node6-control
211               tags: control
212               architecture: amd64/generic
213               mac_addresses:
214                   - "94:57:a5:52:63:b0"
215               power:
216                   type: ipmi
217                   address: 192.168.2.16
218                   user: Administrator
219                   pass: pod2Admin
220                   driver: LAN_2_0
221
222             - name: node7-control
223               tags: control
224               architecture: amd64/generic
225               mac_addresses:
226                   - "94:57:a5:52:f1:80"
227               power:
228                   type: ipmi
229                   address: 192.168.2.17
230                   user: Administrator
231                   pass: pod2Admin
232                   driver: LAN_2_0
233
234     # Contains the virtual machine parameters for creating the Juju bootstrap
235     # node virtual machine
236     juju-bootstrap:
237         name: bootstrap
238         interfaces: ['bridge=brAdm,model=virtio']
239         memory: 8192
240         vcpus: 2
241         arch: amd64
242         pool: default
243         disk_size: 60G