modified the vip address for different labs.
[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: maas-boot-vm-dc1
14         interfaces: ['bridge=brAdm,model=virtio']
15         memory: 3072
16         vcpus: 1
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.0.4
49             maas_name: automaas
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.4
75             dns-nameservers 192.168.0.4 127.0.0.1
76
77             #auto lo
78             #iface lo inet loopback
79
80             #auto eth0
81             #iface eth0 inet static
82             #  address 192.168.122.2
83             #  netmask 255.255.248.0
84             #  network 192.168.122.0
85             #  broadcast 192.168.122.255
86             #  gateway 192.168.122.1
87             #  dns-nameservers 192.168.122.1 127.0.0.1
88
89         # The node-group-interfaces section is used to configure the MAAS
90         # network interfaces. Basic configuration is supported, such as which
91         # device should be bound, the range of IP addresses, etc.
92         # Note: this may contain the special identifiers:
93         #   ${maas_net} - the first 3 octets of the ipv4 address
94         #   ${maas_ip} - the ip address of the MAAS controller 
95         node_group_ifaces:
96             - device: eth0
97               ip: 192.168.2.5
98               subnet_mask: 255.255.255.0
99               broadcast_ip: 192.168.2.255
100               router_ip: 192.168.2.4
101               static_range:
102                   low: 192.168.2.50
103                   high: 192.168.2.150
104               dynamic_range:
105                   low: 192.168.2.151
106                   high: 192.168.2.200
107
108         # Defines the physical nodes which are added to the MAAS cluster
109         # controller upon startup of the node.
110         nodes:
111             - name: node1-compute
112               tags: compute
113               architecture: amd64/generic
114               mac_addresses:
115                   - "38:63:bb:3f:bc:c8" 
116                   - "38:63:bb:3f:bc:c9"
117                   - "38:63:bb:3f:bc:ca"
118                   - "38:63:bb:3f:bc:cb"
119                   - "a0:36:9f:4e:88:5c"
120                   - "a0:36:9f:4e:88:5e"
121               power:
122                   type: ipmi
123                   address: 192.168.2.11
124                   user: maas
125                   pass: 8B3DuzZCrC
126                   driver: LAN_2_0
127 #              sticky_ip_address:
128 #                  mac_address: "38:63:bb:43:b8:9c"
129 #                  requested_address: 192.168.122.5
130 #                
131             - name: node2-compute
132               tags: control
133               architecture: amd64/generic
134               mac_addresses:
135                   - "38:63:bb:44:34:84"
136                   - "38:63:bb:44:34:85"
137                   - "38:63:bb:44:34:86"
138                   - "38:63:bb:44:34:87"
139                   - "a0:36:9f:4e:8b:0c"
140                   - "a0:36:9f:4e:8b:0e"
141               power:
142                   type: ipmi
143                   address: 192.168.2.12
144                   user: maas
145                   pass: O0W3DtlHVuFX7
146                   driver: LAN_2_0
147
148             - name: node3-compute
149               tags: control
150               architecture: amd64/generic
151               mac_addresses:
152                   - "38:63:bb:3f:1d:8c"
153                   - "38:63:bb:3f:1d:8d"
154                   - "38:63:bb:3f:1d:8e"
155                   - "38:63:bb:3f:1d:8f"
156                   - "a0:36:9f:4e:8a:3c"
157                   - "a0:36:9f:4e:8a:3e"
158               power:
159                   type: ipmi
160                   address: 192.168.2.13
161                   user: maas
162                   pass: 6vCiYnhZuBt
163                   driver: LAN_2_0
164
165             - name: node4-compute
166               tags: control
167               architecture: amd64/generic
168               mac_addresses:
169                   - "38:63:bb:3f:2d:a8"
170                   - "38:63:bb:3f:2d:a9"
171                   - "38:63:bb:3f:2d:aa"
172                   - "38:63:bb:3f:2d:ab"
173                   - "a0:36:9f:4e:8b:18"
174                   - "a0:36:9f:4e:8b:1a"
175               power:
176                   type: ipmi
177                   address: 192.168.2.14
178                   user: maas
179                   pass: 3dSyBHsb1P
180                   driver: LAN_2_0
181
182 #            - name: node5-control
183 #              tags: control
184 #              architecture: amd64/generic
185 #              mac_addresses:
186 #                  - "00:1a:64:c8:a8:48"
187 #                  - "00:1a:64:c8:a8:4a"
188 #                  - "a0:36:9f:4e:88:14"
189 #                  - "a0:36:9f:4e:88:16"
190 #              power:
191 #                  type: ipmi
192 #                  address: 192.168.2.15
193 #                  user: maas
194 #                  pass: vrFXUa20C
195 #                  driver: LAN_2_0
196
197             - name: node6-control
198               tags: physical
199               architecture: amd64/generic
200               mac_addresses:
201                   - "00:1a:64:c8:a8:14"
202                   - "00:1a:64:c8:a8:16"
203                   - "a0:36:9f:4e:87:5c"
204                   - "a0:36:9f:4e:87:5e"
205               power:
206                   type: ipmi
207                   address: 192.168.2.16
208                   user: maas
209                   pass: jYkXYMhI1
210                   driver: LAN_2_0
211
212 #            - name: node7-control
213 #              tags: control
214 #              architecture: amd64/generic
215 #              mac_addresses:
216 #                  - "00:1a:64:c8:a8:34"
217 #                  - "00:1a:64:c8:a8:36"
218 #                  - "a0:36:9f:4e:88:38"
219 #                  - "a0:36:9f:4e:88:3a"
220 #              power:
221 #                  type: ipmi
222 #                  address: 192.168.2.17
223 #                  user: maas
224 #                  pass: GPejUGZx6IkVxz
225 #                  driver: LAN_2_0
226
227 #            - name: jenkins-slave
228 #              tags: jenkins-slave
229 #              architecture: amd64/generic
230 #              mac_addresses:
231 #                  - "52:54:00:f0:5c:53"
232 #              power:
233 #                  type: virsh
234 #                  address: qemu+ssh://ubuntu@10.4.1.1/system
235
236     # Contains the virtual machine parameters for creating the Juju bootstrap
237     # node virtual machine
238     juju-bootstrap:
239         name: bootstrap
240         interfaces: ['bridge=brAdm,model=virtio']
241         memory: 3072
242         vcpus: 2
243         arch: amd64
244         pool: default
245         disk_size: 60G