changing to stable branch as MAAS 1.9 released in stable.
[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         # TODO interfaces: ['bridge=brAdm,model=virtio','bridge=brData,model=virtio','bridge=brPublic,model=virtio']
15         interfaces: ['bridge=brAdm,model=virtio','bridge=brPublic,model=virtio']
16         memory: 4096
17         vcpus: 4
18         arch: amd64
19         pool: default
20         disk_size: 160G
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         # Virsh power settings
30         # Specifies the uri and keys to use for virsh power control of the 
31         # juju virtual machine. If the uri is omitted, the value for the
32         # --remote is used. If no power settings are desired, then do not
33         # supply the virsh block.
34         virsh:
35             rsa_priv_key: /home/ubuntu/.ssh/id_rsa
36             rsa_pub_key: /home/ubuntu/.ssh/id_rsa.pub
37             uri: qemu+ssh://ubuntu@10.120.0.2/system
38
39         # Defines the IP Address that the configuration script will use to
40         # to access the MAAS controller via SSH.
41         ip_address: 10.120.0.3
42
43         # This section allows the user to set a series of options on the
44         # MAAS server itself. The list of config options can be found in
45         # the upstream MAAS documentation:
46         #  - http://maas.ubuntu.com/docs/api.html#maas-server
47         settings:
48             upstream_dns: 192.168.60.1
49             maas_name: cengnlynxpod1
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.120.0.3
71             netmask 255.255.255.0
72             network 10.120.0.0
73             broadcast 10.120.0.255
74             gateway 10.120.0.254
75             dns-nameservers 192.168.60.1 8.8.8.8 127.0.0.1
76
77             auto eth1
78             iface eth1 inet static
79             address 172.16.121.3
80             netmask 255.255.255.0
81             
82             auto eth2
83             iface eth2 inet static
84             address 172.16.122.3
85             netmask 255.255.255.0
86             
87
88         # The node-group-interfaces section is used to configure the MAAS
89         # network interfaces. Basic configuration is supported, such as which
90         # device should be bound, the range of IP addresses, etc.
91         # Note: this may contain the special identifiers:
92         #   ${maas_net} - the first 3 octets of the ipv4 address
93         #   ${maas_ip} - the ip address of the MAAS controller 
94         node_group_ifaces:
95             - device: eth0
96               ip: 10.120.0.3
97               subnet_mask: 255.255.255.0
98               broadcast_ip: 10.120.0.255
99               router_ip: 10.120.0.254
100               static_range:
101                   low: 10.120.0.20
102                   high: 10.120.0.100
103               dynamic_range:
104                   low: 10.120.0.101
105                   high: 10.120.0.200
106             - device: eth1
107               ip: 172.16.121.3
108               subnet_mask: 255.255.255.0
109               broadcast_ip: 172.16.121.255
110               management: 1
111               static_range:
112                 low: 172.16.121.20
113                 high: 172.16.121.100
114               dynamic_range:
115                 low: 172.16.121.101
116                 high: 172.16.121.200
117             - device: eth2
118               ip: 172.16.122.3
119               subnet_mask: 255.255.255.0
120               broadcast_ip: 172.16.122.255
121               management: 1
122               static_range:
123                 low: 172.16.122.20
124                 high: 172.16.122.100
125               dynamic_range:
126                 low: 172.16.122.101
127                 high: 172.16.122.200
128             
129         # Defines the physical nodes which are added to the MAAS cluster
130         # controller upon startup of the node.
131         nodes:
132           - name: node1-compute
133             tags: compute
134             architecture: amd64/generic
135             mac_addresses:
136               - "0c:c4:7a:3a:c5:b6"
137             power:
138                 type: ipmi
139                 address: 192.168.42.72
140                 user: root
141                 pass: root
142                 driver: LAN_2_0
143
144           - name: node2-compute
145             tags: compute
146             architecture: amd64/generic
147             mac_addresses:
148               - "0c:c4:7a:3a:b2:ae"
149             power:
150                 type: ipmi
151                 address: 192.168.42.40
152                 user: root
153                 pass: root
154                 driver: LAN_2_0
155
156           - name: node3-control
157             tags: control
158             architecture: amd64/generic
159             mac_addresses:
160               - "0c:c4:7a:1f:6f:c0"
161             power:
162                 type: ipmi
163                 address: 192.168.42.33
164                 user: root
165                 pass: root
166                 driver: LAN_2_0
167
168           - name: node4-control
169             tags: control
170             architecture: amd64/generic
171             mac_addresses:
172               - "0c:c4:7a:31:9d:bc"
173             power:
174                 type: ipmi
175                 address: 192.168.42.6
176                 user: root
177                 pass: root
178                 driver: LAN_2_0
179
180           - name: node5-control
181             tags: control
182             architecture: amd64/generic
183             mac_addresses:
184                - "00:25:90:fd:2e:48"
185             power:
186                  type: ipmi
187                  address: 192.168.42.35
188                  user: root
189                  pass: root
190                  driver: LAN_2_0
191
192
193 #            - name: jenkins-slave
194 #              tags: jenkins-slave
195 #              architecture: amd64/generic
196 #              mac_addresses:
197 #                  - "52:54:00:f0:5c:53"
198 #              power:
199 #                  type: virsh
200 #                  address: qemu+ssh://ubuntu@10.4.1.1/system
201
202     # Contains the virtual machine parameters for creating the Juju bootstrap
203     # node virtual machine
204     juju-bootstrap:
205         name: bootstrap
206         interfaces: ['bridge=brAdm,model=virtio','bridge=brPublic,model=virtio']
207         memory: 4096
208         vcpus: 4
209         arch: amd64
210         pool: default
211         disk_size: 120G