46857c910c9a9dcfe7d9c969a6aa1917ba0369da
[joid.git] / ci / 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: opnfv-maas-intel
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
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: intelpod5
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 eth1
78             iface eth1 inet static
79             address 10.4.9.2
80             netmask 255.255.248.0
81             network 10.4.8.0
82             broadcast 10.4.15.255
83
84             #auto lo
85             #iface lo inet loopback
86
87             #auto eth0
88             #iface eth0 inet static
89             #  address 192.168.122.2
90             #  netmask 255.255.248.0
91             #  network 192.168.122.0
92             #  broadcast 192.168.122.255
93             #  gateway 192.168.122.1
94             #  dns-nameservers 192.168.122.1 127.0.0.1
95
96         # The node-group-interfaces section is used to configure the MAAS
97         # network interfaces. Basic configuration is supported, such as which
98         # device should be bound, the range of IP addresses, etc.
99         # Note: this may contain the special identifiers:
100         #   ${maas_net} - the first 3 octets of the ipv4 address
101         #   ${maas_ip} - the ip address of the MAAS controller 
102         node_group_ifaces:
103             - device: eth0
104               ip: 10.4.1.2
105               subnet_mask: 255.255.248.0
106               broadcast_ip: 10.4.7.255
107               router_ip: 10.4.0.1
108               static_range:
109                   low: 10.4.2.20
110                   high: 10.4.2.254
111               dynamic_range:
112                   low: 10.4.1.50
113                   high: 10.4.1.254
114
115         # Defines the physical nodes which are added to the MAAS cluster
116         # controller upon startup of the node.
117         nodes:
118             - name: node5-compute
119               tags: compute
120               architecture: amd64/generic
121               mac_addresses:
122                   - "00:1e:67:e0:0a:4a"
123                   - "00:1e:67:e0:0a:4b"
124                   - "00:1e:67:d0:9a:10"
125                   - "00:1e:67:d0:9a:11"
126               power:
127                   type: ipmi
128                   address: 10.4.7.5
129                   user: root
130                   pass: root
131                   driver: LAN_2_0
132 #              sticky_ip_address:
133 #                  mac_address: "38:63:bb:43:b8:9c"
134 #                  requested_address: 192.168.122.5
135                 
136             - name: node4-control
137               tags: control
138               architecture: amd64/generic
139               mac_addresses:
140                   - "00:1e:67:e0:08:b0"
141                   - "00:1e:67:e0:08:b1"
142                   - "00:1e:67:d0:99:ee"
143                   - "00:1e:67:d0:99:ef"
144               power:
145                   type: ipmi
146                   address: 10.4.7.4
147                   user: root
148                   pass: root
149                   driver: LAN_2_0
150 #              sticky_ip_address:
151 #                  mac_address: "38:63:bb:43:b8:9c"
152 #                  requested_address: 192.168.122.5
153
154             - name: node3-control
155               tags: control
156               architecture: amd64/generic
157               mac_addresses:
158                   - "00:1e:67:e0:08:7e"
159                   - "00:1e:67:e0:08:7f"
160                   - "00:1e:67:c2:23:d8"
161                   - "00:1e:67:c2:23:d9"
162               power:
163                   type: ipmi
164                   address: 10.4.7.3
165                   user: root
166                   pass: root
167                   driver: LAN_2_0
168 #              sticky_ip_address:
169 #                  mac_address: "38:63:bb:43:b8:9c"
170 #                  requested_address: 192.168.122.5
171
172             - name: node2-control
173               tags: control
174               architecture: amd64/generic
175               mac_addresses:
176                   - "00:1e:67:cf:b8:92"
177                   - "00:1e:67:cf:b8:93"
178                   - "00:1e:67:d0:9b:0c"
179                   - "00:1e:67:d0:9b:0d"
180               power:
181                   type: ipmi
182                   address: 10.4.7.2
183                   user: root
184                   pass: root
185                   driver: LAN_2_0
186 #              sticky_ip_address:
187 #                  mac_address: "38:63:bb:43:b8:9c"
188 #                  requested_address: 192.168.122.5
189
190 #            - name: jenkins-slave
191 #              tags: jenkins-slave
192 #              architecture: amd64/generic
193 #              mac_addresses:
194 #                  - "52:54:00:f0:5c:53"
195 #              power:
196 #                  type: virsh
197 #                  address: qemu+ssh://ubuntu@10.4.1.1/system
198
199     # Contains the virtual machine parameters for creating the Juju bootstrap
200     # node virtual machine
201     juju-bootstrap:
202         name: bootstrap
203         interfaces: ['bridge=brAdm,model=virtio']
204         memory: 4096
205         vcpus: 4
206         arch: amd64
207         pool: default
208         disk_size: 120G