fe71144af76b0b055d08c72259d3c47cf6b03c6c
[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/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://ubuntu@10.120.0.2/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.120.0.3
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             upstream_dns: 192.168.60.1
67             maas_name: cengnlynxpod1
68             # kernel_opts: "console=tty0 console=ttyS1,115200n8"
69             # ntp_server: ntp.ubuntu.com
70
71         # This section is used to define the networking parameters for when
72         # the node first comes up. It is fed into the meta-data cloud-init
73         # configuration and is used to configure the networking piece of the
74         # service. The contents of this section are written directly to the
75         # /etc/network/interfaces file.
76         #
77         # Please note, this is slightly different than the
78         # node-group-interfaces section below. This will configure the
79         # machine's networking params, and the node-group-interfaces will
80         # configure the maas node-group interfaces which is used for
81         # controlling the dhcp, dns, etc.
82         network_config: |
83             auto lo
84             iface lo inet loopback
85
86             auto eth0
87             iface eth0 inet static
88             address 10.120.0.3
89             netmask 255.255.255.0
90             network 10.120.0.0
91             broadcast 10.120.0.255
92             gateway 10.120.0.254
93             dns-nameservers 192.168.60.1 8.8.8.8 127.0.0.1
94
95             auto eth1
96             iface eth1 inet static
97             address 172.16.121.3
98             netmask 255.255.255.0
99             
100             auto eth2
101             iface eth2 inet static
102             address 172.16.122.3
103             netmask 255.255.255.0
104             
105
106         # The node-group-interfaces section is used to configure the MAAS
107         # network interfaces. Basic configuration is supported, such as which
108         # device should be bound, the range of IP addresses, etc.
109         # Note: this may contain the special identifiers:
110         #   ${maas_net} - the first 3 octets of the ipv4 address
111         #   ${maas_ip} - the ip address of the MAAS controller 
112         node_group_ifaces:
113             - device: eth0
114               ip: 10.120.0.3
115               subnet_mask: 255.255.255.0
116               broadcast_ip: 10.120.0.255
117               router_ip: 10.120.0.254
118               static_range:
119                   low: 10.120.0.50
120                   high: 10.120.0.80
121               dynamic_range:
122                   low: 10.120.0.81
123                   high: 10.120.0.249
124             - device: eth1
125               ip: 172.16.121.3
126               subnet_mask: 255.255.255.0
127               broadcast_ip: 172.16.121.255
128               management: 1
129               static_range:
130                 low: 172.16.121.50
131                 high: 172.16.121.80
132               dynamic_range:
133                 low: 172.16.121.81
134                 high: 172.16.121.249
135             - device: eth2
136               ip: 172.16.122.3
137               subnet_mask: 255.255.255.0
138               broadcast_ip: 172.16.122.255
139               management: 1
140               static_range:
141                 low: 172.16.122.50
142                 high: 172.16.122.80
143               dynamic_range:
144                 low: 172.16.122.81
145                 high: 172.16.122.249
146             
147         # Defines the physical nodes which are added to the MAAS cluster
148         # controller upon startup of the node.
149         nodes:
150           - name: node3-control
151             tags: control
152             architecture: amd64/generic
153             mac_addresses:
154               - "0c:c4:7a:3a:c5:b6"
155             power:
156                 type: ipmi
157                 address: 192.168.42.72
158                 user: root
159                 pass: root
160                 driver: LAN_2_0
161
162           - name: node2-compute
163             tags: compute
164             architecture: amd64/generic
165             mac_addresses:
166               - "0c:c4:7a:3a:b2:ae"
167             power:
168                 type: ipmi
169                 address: 192.168.42.40
170                 user: root
171                 pass: root
172                 driver: LAN_2_0
173
174           - name: node1-compute
175             tags: compute
176             architecture: amd64/generic
177             mac_addresses:
178               - "0c:c4:7a:1f:6f:c0"
179             power:
180                 type: ipmi
181                 address: 192.168.42.33
182                 user: root
183                 pass: root
184                 driver: LAN_2_0
185
186           - name: node4-control
187             tags: control
188             architecture: amd64/generic
189             mac_addresses:
190               - "0c:c4:7a:31:9d:bc"
191             power:
192                 type: ipmi
193                 address: 192.168.42.6
194                 user: root
195                 pass: root
196                 driver: LAN_2_0
197
198           - name: node5-control
199             tags: control
200             architecture: amd64/generic
201             mac_addresses:
202                - "00:25:90:fd:2e:48"
203             power:
204                  type: ipmi
205                  address: 192.168.42.35
206                  user: root
207                  pass: root
208                  driver: LAN_2_0
209
210
211 #            - name: jenkins-slave
212 #              tags: jenkins-slave
213 #              architecture: amd64/generic
214 #              mac_addresses:
215 #                  - "52:54:00:f0:5c:53"
216 #              power:
217 #                  type: virsh
218 #                  address: qemu+ssh://ubuntu@10.4.1.1/system
219
220     # Contains the virtual machine parameters for creating the Juju bootstrap
221     # node virtual machine
222     juju-bootstrap:
223         name: bootstrap
224         interfaces: ['bridge=brAdm,model=virtio','bridge=brPublic,model=virtio']
225         memory: 4096
226         vcpus: 4
227         arch: amd64
228         pool: default
229         disk_size: 120G