79eaba050e544b23460746556026116091c01c11
[joid.git] / ci / intel / pod5 / maas / 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         # Virsh power settings
25         # Specifies the uri and keys to use for virsh power control of the 
26         # juju virtual machine. If the uri is omitted, the value for the
27         # --remote is used. If no power settings are desired, then do not
28         # supply the virsh block.
29         virsh:
30             rsa_priv_key: /home/ubuntu/.ssh/id_rsa
31             rsa_pub_key: /home/ubuntu/.ssh/id_rsa.pub
32             uri: qemu+ssh://ubuntu@10.4.1.1/system
33
34         # Defines the IP Address that the configuration script will use to
35         # to access the MAAS controller via SSH.
36         ip_address: 10.4.1.2
37
38         # This section allows the user to set a series of options on the
39         # MAAS server itself. The list of config options can be found in
40         # the upstream MAAS documentation:
41         #  - http://maas.ubuntu.com/docs/api.html#maas-server
42         settings:
43             main_archive: http://us.archive.ubuntu.com/ubuntu
44             upstream_dns: 10.4.0.2
45             maas_name: automaas
46             # kernel_opts: "console=tty0 console=ttyS1,115200n8"
47             # ntp_server: ntp.ubuntu.com
48
49         # This section is used to define the networking parameters for when
50         # the node first comes up. It is fed into the meta-data cloud-init
51         # configuration and is used to configure the networking piece of the
52         # service. The contents of this section are written directly to the
53         # /etc/network/interfaces file.
54         #
55         # Please note, this is slightly different than the
56         # node-group-interfaces section below. This will configure the
57         # machine's networking params, and the node-group-interfaces will
58         # configure the maas node-group interfaces which is used for
59         # controlling the dhcp, dns, etc.
60         network_config: |
61             auto lo
62             iface lo inet loopback
63
64             auto eth0
65             iface eth0 inet static
66             address 10.4.1.2
67             netmask 255.255.248.0
68             network 10.4.0.0
69             broadcast 10.4.7.255
70             gateway 10.4.0.1
71             dns-nameservers 10.4.0.2 127.0.0.1
72
73             #auto lo
74             #iface lo inet loopback
75
76             #auto eth0
77             #iface eth0 inet static
78             #  address 192.168.122.2
79             #  netmask 255.255.248.0
80             #  network 192.168.122.0
81             #  broadcast 192.168.122.255
82             #  gateway 192.168.122.1
83             #  dns-nameservers 192.168.122.1 127.0.0.1
84
85         # The node-group-interfaces section is used to configure the MAAS
86         # network interfaces. Basic configuration is supported, such as which
87         # device should be bound, the range of IP addresses, etc.
88         # Note: this may contain the special identifiers:
89         #   ${maas_net} - the first 3 octets of the ipv4 address
90         #   ${maas_ip} - the ip address of the MAAS controller 
91         node_group_ifaces:
92             - device: eth0
93               ip: 10.4.1.2
94               subnet_mask: 255.255.248.0
95               broadcast_ip: 10.4.7.255
96               router_ip: 10.4.0.1
97               static_range:
98                   low: 10.4.2.20
99                   high: 10.4.2.254
100               dynamic_range:
101                   low: 10.4.1.50
102                   high: 10.4.1.254
103
104         # Defines the physical nodes which are added to the MAAS cluster
105         # controller upon startup of the node.
106         nodes:
107             - name: node1
108               tags: physical
109               architecture: amd64/generic
110               mac_addresses:
111                   - "00:1e:67:e0:0a:4a"
112                   - "00:1e:67:e0:0a:4b"
113                   - "00:1e:67:d0:9a:10"
114                   - "00:1e:67:d0:9a:11"
115               power:
116                   type: ipmi
117                   address: 10.4.2.8
118                   user: root
119                   pass: root
120                   driver: LAN_2_0
121 #              sticky_ip_address:
122 #                  mac_address: "38:63:bb:43:b8:9c"
123 #                  requested_address: 192.168.122.5
124                 
125             - name: node2
126               tags: physical
127               architecture: amd64/generic
128               mac_addresses:
129                   - "00:1e:67:e0:08:b0"
130                   - "00:1e:67:e0:08:b1"
131                   - "00:1e:67:d0:99:ee"
132                   - "00:1e:67:d0:99:ef"
133               power:
134                   type: ipmi
135                   address: 10.4.2.9
136                   user: root
137                   pass: root
138                   driver: LAN_2_0
139 #              sticky_ip_address:
140 #                  mac_address: "38:63:bb:43:b8:9c"
141 #                  requested_address: 192.168.122.5
142
143             - name: node3
144               tags: physical
145               architecture: amd64/generic
146               mac_addresses:
147                   - "00:1e:67:e0:08:7e"
148                   - "00:1e:67:e0:08:7f"
149                   - "00:1e:67:c2:23:d8"
150                   - "00:1e:67:c2:23:d9"
151               power:
152                   type: ipmi
153                   address: 10.4.2.7
154                   user: root
155                   pass: root
156                   driver: LAN_2_0
157 #              sticky_ip_address:
158 #                  mac_address: "38:63:bb:43:b8:9c"
159 #                  requested_address: 192.168.122.5
160
161             - name: node4
162               tags: physical
163               architecture: amd64/generic
164               mac_addresses:
165                   - "00:1e:67:cf:b8:92"
166                   - "00:1e:67:cf:b8:93"
167                   - "00:1e:67:d0:9b:0c"
168                   - "00:1e:67:d0:9b:0d"
169               power:
170                   type: ipmi
171                   address: 10.4.2.10
172                   user: root
173                   pass: root
174                   driver: LAN_2_0
175 #              sticky_ip_address:
176 #                  mac_address: "38:63:bb:43:b8:9c"
177 #                  requested_address: 192.168.122.5
178
179     # Contains the virtual machine parameters for creating the Juju bootstrap
180     # node virtual machine
181     juju-bootstrap:
182         name: bootstrap
183         interfaces: ['bridge=br0,model=virtio']
184         memory: 4096
185         vcpus: 2
186         arch: amd64
187         pool: default
188         disk_size: 120G