Merge "modified to download both trusty and xenial images."
[joid.git] / ci / maas / cengn_lynx / pod1 / deployment.yaml
1 # This file defines the deployment for the MAAS environment which is to be
2 # deployed and automated.
3 cengn-lynx-pod1:
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-cengn-lynx
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         series: 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/releases/
31             keyring_filename: /usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
32             selections:
33                 1:
34                     release: trusty
35                     os: ubuntu
36                     arches: amd64
37                     subarches: "*"
38                     labels: daily
39                 2:
40                     release: xenial
41                     os: ubuntu
42                     arches: amd64
43                     subarches: "*"
44                     labels: daily
45
46         # Virsh power settings
47         # Specifies the uri and keys to use for virsh power control of the 
48         # juju virtual machine. If the uri is omitted, the value for the
49         # --remote is used. If no power settings are desired, then do not
50         # supply the virsh block.
51         virsh:
52             rsa_priv_key: /home/ubuntu/.ssh/id_rsa
53             rsa_pub_key: /home/ubuntu/.ssh/id_rsa.pub
54             uri: qemu+ssh://ubuntu@10.120.0.2/system
55
56         # Defines the IP Address that the configuration script will use to
57         # to access the MAAS controller via SSH.
58         ip_address: 10.120.0.3
59
60         # This section allows the user to set a series of options on the
61         # MAAS server itself. The list of config options can be found in
62         # the upstream MAAS documentation:
63         #  - http://maas.ubuntu.com/docs/api.html#maas-server
64         settings:
65             upstream_dns: 192.168.60.1
66             maas_name: cengnlynxpod1
67             # kernel_opts: "console=tty0 console=ttyS1,115200n8"
68             # ntp_server: ntp.ubuntu.com
69
70         # This section is used to define the networking parameters for when
71         # the node first comes up. It is fed into the meta-data cloud-init
72         # configuration and is used to configure the networking piece of the
73         # service. The contents of this section are written directly to the
74         # /etc/network/interfaces file.
75         #
76         # Please note, this is slightly different than the
77         # node-group-interfaces section below. This will configure the
78         # machine's networking params, and the node-group-interfaces will
79         # configure the maas node-group interfaces which is used for
80         # controlling the dhcp, dns, etc.
81         network_config: |
82             auto lo
83             iface lo inet loopback
84
85             auto eth0
86             iface eth0 inet static
87             address 10.120.0.3
88             netmask 255.255.255.0
89             network 10.120.0.0
90             broadcast 10.120.0.255
91             gateway 10.120.0.254
92             dns-nameservers 192.168.60.1 8.8.8.8 127.0.0.1
93
94             auto eth1
95             iface eth1 inet static
96             address 172.16.121.3
97             netmask 255.255.255.0
98             
99             auto eth2
100             iface eth2 inet static
101             address 172.16.122.3
102             netmask 255.255.255.0
103             
104
105         # The node-group-interfaces section is used to configure the MAAS
106         # network interfaces. Basic configuration is supported, such as which
107         # device should be bound, the range of IP addresses, etc.
108         # Note: this may contain the special identifiers:
109         #   ${maas_net} - the first 3 octets of the ipv4 address
110         #   ${maas_ip} - the ip address of the MAAS controller 
111         node_group_ifaces:
112             - device: eth0
113               ip: 10.120.0.3
114               subnet_mask: 255.255.255.0
115               broadcast_ip: 10.120.0.255
116               router_ip: 10.120.0.254
117               static_range:
118                   low: 10.120.0.50
119                   high: 10.120.0.80
120               dynamic_range:
121                   low: 10.120.0.81
122                   high: 10.120.0.249
123             - device: eth1
124               ip: 172.16.121.3
125               subnet_mask: 255.255.255.0
126               broadcast_ip: 172.16.121.255
127               management: 1
128               static_range:
129                 low: 172.16.121.50
130                 high: 172.16.121.80
131               dynamic_range:
132                 low: 172.16.121.81
133                 high: 172.16.121.249
134             - device: eth2
135               ip: 172.16.122.3
136               subnet_mask: 255.255.255.0
137               broadcast_ip: 172.16.122.255
138               management: 1
139               static_range:
140                 low: 172.16.122.50
141                 high: 172.16.122.80
142               dynamic_range:
143                 low: 172.16.122.81
144                 high: 172.16.122.249
145             
146         # Defines the physical nodes which are added to the MAAS cluster
147         # controller upon startup of the node.
148         nodes:
149           - name: node3-control
150             tags: control
151             architecture: amd64/generic
152             mac_addresses:
153               - "0c:c4:7a:3a:c5:b6"
154             power:
155                 type: ipmi
156                 address: 192.168.42.72
157                 user: root
158                 pass: root
159                 driver: LAN_2_0
160
161           - name: node2-compute
162             tags: compute
163             architecture: amd64/generic
164             mac_addresses:
165               - "0c:c4:7a:3a:b2:ae"
166             power:
167                 type: ipmi
168                 address: 192.168.42.40
169                 user: root
170                 pass: root
171                 driver: LAN_2_0
172
173           - name: node1-compute
174             tags: compute
175             architecture: amd64/generic
176             mac_addresses:
177               - "0c:c4:7a:1f:6f:c0"
178             power:
179                 type: ipmi
180                 address: 192.168.42.33
181                 user: root
182                 pass: root
183                 driver: LAN_2_0
184
185           - name: node4-control
186             tags: control
187             architecture: amd64/generic
188             mac_addresses:
189               - "0c:c4:7a:31:9d:bc"
190             power:
191                 type: ipmi
192                 address: 192.168.42.6
193                 user: root
194                 pass: root
195                 driver: LAN_2_0
196
197           - name: node5-control
198             tags: control
199             architecture: amd64/generic
200             mac_addresses:
201                - "00:25:90:fd:2e:48"
202             power:
203                  type: ipmi
204                  address: 192.168.42.35
205                  user: root
206                  pass: root
207                  driver: LAN_2_0
208
209
210 #            - name: jenkins-slave
211 #              tags: jenkins-slave
212 #              architecture: amd64/generic
213 #              mac_addresses:
214 #                  - "52:54:00:f0:5c:53"
215 #              power:
216 #                  type: virsh
217 #                  address: qemu+ssh://ubuntu@10.4.1.1/system
218
219     # Contains the virtual machine parameters for creating the Juju bootstrap
220     # node virtual machine
221     juju-bootstrap:
222         name: bootstrap
223         interfaces: ['bridge=brAdm,model=virtio','bridge=brPublic,model=virtio']
224         memory: 4096
225         vcpus: 4
226         arch: amd64
227         pool: default
228         disk_size: 120G