Added support for Orange lab POD5 along with some renaming of the files.
[joid.git] / ci / maas / intel / pod5 / 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=br0,model=virtio']
15         memory: 4096
16         vcpus: 2
17         arch: amd64
18         pool: default
19         disk_size: 160G
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@10.4.1.1/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: 10.4.1.2
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://us.archive.ubuntu.com/ubuntu
48             upstream_dns: 10.4.0.2
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 10.4.1.2
71             netmask 255.255.248.0
72             network 10.4.0.0
73             broadcast 10.4.7.255
74             gateway 10.4.0.1
75             dns-nameservers 10.4.0.2 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: 10.4.1.2
98               subnet_mask: 255.255.248.0
99               broadcast_ip: 10.4.7.255
100               router_ip: 10.4.0.1
101               static_range:
102                   low: 10.4.2.20
103                   high: 10.4.2.254
104               dynamic_range:
105                   low: 10.4.1.50
106                   high: 10.4.1.254
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
112               tags: physical
113               architecture: amd64/generic
114               mac_addresses:
115                   - "00:1e:67:e0:0a:4a"
116                   - "00:1e:67:e0:0a:4b"
117                   - "00:1e:67:d0:9a:10"
118                   - "00:1e:67:d0:9a:11"
119               power:
120                   type: ipmi
121                   address: 10.4.2.8
122                   user: root
123                   pass: root
124                   driver: LAN_2_0
125 #              sticky_ip_address:
126 #                  mac_address: "38:63:bb:43:b8:9c"
127 #                  requested_address: 192.168.122.5
128                 
129             - name: node2
130               tags: physical
131               architecture: amd64/generic
132               mac_addresses:
133                   - "00:1e:67:e0:08:b0"
134                   - "00:1e:67:e0:08:b1"
135                   - "00:1e:67:d0:99:ee"
136                   - "00:1e:67:d0:99:ef"
137               power:
138                   type: ipmi
139                   address: 10.4.2.9
140                   user: root
141                   pass: root
142                   driver: LAN_2_0
143 #              sticky_ip_address:
144 #                  mac_address: "38:63:bb:43:b8:9c"
145 #                  requested_address: 192.168.122.5
146
147             - name: node3
148               tags: physical
149               architecture: amd64/generic
150               mac_addresses:
151                   - "00:1e:67:e0:08:7e"
152                   - "00:1e:67:e0:08:7f"
153                   - "00:1e:67:c2:23:d8"
154                   - "00:1e:67:c2:23:d9"
155               power:
156                   type: ipmi
157                   address: 10.4.2.7
158                   user: root
159                   pass: root
160                   driver: LAN_2_0
161 #              sticky_ip_address:
162 #                  mac_address: "38:63:bb:43:b8:9c"
163 #                  requested_address: 192.168.122.5
164
165             - name: node4
166               tags: physical
167               architecture: amd64/generic
168               mac_addresses:
169                   - "00:1e:67:cf:b8:92"
170                   - "00:1e:67:cf:b8:93"
171                   - "00:1e:67:d0:9b:0c"
172                   - "00:1e:67:d0:9b:0d"
173               power:
174                   type: ipmi
175                   address: 10.4.2.10
176                   user: root
177                   pass: root
178                   driver: LAN_2_0
179 #              sticky_ip_address:
180 #                  mac_address: "38:63:bb:43:b8:9c"
181 #                  requested_address: 192.168.122.5
182
183 #            - name: jenkins-slave
184 #              tags: jenkins-slave
185 #              architecture: amd64/generic
186 #              mac_addresses:
187 #                  - "52:54:00:f0:5c:53"
188 #              power:
189 #                  type: virsh
190 #                  address: qemu+ssh://ubuntu@10.4.1.1/system
191
192     # Contains the virtual machine parameters for creating the Juju bootstrap
193     # node virtual machine
194     juju-bootstrap:
195         name: bootstrap
196         interfaces: ['bridge=br0,model=virtio']
197         memory: 4096
198         vcpus: 2
199         arch: amd64
200         pool: default
201         disk_size: 120G