04b1229386d09af856e020697abc8ee64189743b
[joid.git] / ci / maas / juniper / pod1 / 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-juniper
14         interfaces: ['bridge=brAdm,model=virtio', 'bridge=brPublic,model=virtio']
15         memory: 4096
16         vcpus: 1
17         arch: amd64
18         pool: default
19         disk_size: 160G
20         release: trusty
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         boot_source:
30             url: http://maas.ubuntu.com/images/ephemeral-v2/daily/
31             keyring_filename: /usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
32             exclusive: true
33             selections:
34                 1:
35                     release: trusty
36                     os: ubuntu
37                     arches: amd64
38                     subarches: "*"
39                     labels: daily
40                 2:
41                     release: xenial
42                     os: ubuntu
43                     arches: amd64
44                     subarches: "*"
45                     labels: daily
46
47         # Virsh power settings
48         # Specifies the uri and keys to use for virsh power control of the 
49         # juju virtual machine. If the uri is omitted, the value for the
50         # --remote is used. If no power settings are desired, then do not
51         # supply the virsh block.
52         virsh:
53             rsa_priv_key: /home/ubuntu/.ssh/id_rsa
54             rsa_pub_key: /home/ubuntu/.ssh/id_rsa.pub
55             uri: qemu+ssh://ubuntu@172.16.50.51/system
56
57         # Defines the IP Address that the configuration script will use to
58         # to access the MAAS controller via SSH.
59         ip_address: 172.16.50.50
60
61         # This section allows the user to set a series of options on the
62         # MAAS server itself. The list of config options can be found in
63         # the upstream MAAS documentation:
64         #  - http://maas.ubuntu.com/docs/api.html#maas-server
65         settings:
66             main_archive: http://us.archive.ubuntu.com/ubuntu
67             upstream_dns: 8.8.8.8
68             maas_name: juniperpod1
69             # kernel_opts: "console=tty0 console=ttyS1,115200n8"
70             # ntp_server: ntp.ubuntu.com
71
72         # This section is used to define the networking parameters for when
73         # the node first comes up. It is fed into the meta-data cloud-init
74         # configuration and is used to configure the networking piece of the
75         # service. The contents of this section are written directly to the
76         # /etc/network/interfaces file.
77         #
78         # Please note, this is slightly different than the
79         # node-group-interfaces section below. This will configure the
80         # machine's networking params, and the node-group-interfaces will
81         # configure the maas node-group interfaces which is used for
82         # controlling the dhcp, dns, etc.
83         network_config: |
84             auto lo
85             iface lo inet loopback
86
87             auto eth0
88             iface eth0 inet static
89             address 172.16.50.50
90             netmask 255.255.255.0
91             network 172.16.50.0
92             broadcast 172.16.50.255
93             dns-nameservers 8.8.8.8 127.0.0.1
94
95             auto eth1
96             iface eth1 inet static
97             address 10.10.15.50
98             netmask 255.255.240.0
99             network 10.10.0.0
100             broadcast 10.10.15.255
101             gateway 10.10.10.1
102
103         # The node-group-interfaces section is used to configure the MAAS
104         # network interfaces. Basic configuration is supported, such as which
105         # device should be bound, the range of IP addresses, etc.
106         # Note: this may contain the special identifiers:
107         #   ${maas_net} - the first 3 octets of the ipv4 address
108         #   ${maas_ip} - the ip address of the MAAS controller 
109         node_group_ifaces:
110             - device: eth0
111               ip: 172.16.50.50
112               subnet_mask: 255.255.255.0
113               broadcast_ip: 172.16.50.255
114               router_ip: 172.16.50.50
115               static_range:
116                   low: 172.16.50.60
117                   high: 172.16.50.90
118               dynamic_range:
119                   low: 172.16.50.91
120                   high: 172.16.50.254
121
122         # Defines the physical nodes which are added to the MAAS cluster
123         # controller upon startup of the node.
124         nodes:
125             - name: 2-R4N4B2-control
126               tags: control
127               architecture: amd64/generic
128               mac_addresses:
129                   - "0c:c4:7a:16:2a:70"
130               power:
131                   type: ipmi
132                   address: 10.10.7.92
133                   user: ADMIN
134                   pass: ADMIN
135                   driver: LAN_2_0
136
137             - name: 3-R4N3B1-compute
138               tags: compute
139               architecture: amd64/generic
140               mac_addresses:
141                   - "0c:c4:7a:53:57:c2"
142               power:
143                   type: ipmi
144                   address: 10.10.7.84
145                   user: ADMIN
146                   pass: ADMIN
147                   driver: LAN_2_0
148
149             - name: 4-R4N4B4-control
150               tags: control
151               architecture: amd64/generic
152               mac_addresses:
153                   - "0c:c4:7a:16:22:9c"
154               power:
155                   type: ipmi
156                   address: 10.10.7.95
157                   user: ADMIN
158                   pass: ADMIN
159                   driver: LAN_2_0
160
161             - name: 5-R4N3B2-compute
162               tags: compute
163               architecture: amd64/generic
164               mac_addresses:
165                   - "0c:c4:7a:53:57:16"
166               power:
167                   type: ipmi
168                   address: 10.10.7.85
169                   user: ADMIN
170                   pass: ADMIN
171                   driver: LAN_2_0
172
173             - name: 6-R4N4B3-control
174               tags: control
175               architecture: amd64/generic
176               mac_addresses:
177                   - "0c:c4:7a:16:2a:0a"
178               power:
179                   type: ipmi
180                   address: 10.10.7.93
181                   user: ADMIN
182                   pass: ADMIN
183                   driver: LAN_2_0
184
185     # Contains the virtual machine parameters for creating the Juju bootstrap
186     # node virtual machine
187     juju-bootstrap:
188         name: bootstrap
189         interfaces: ['bridge=brAdm,model=virtio', 'bridge=brPublic,model=virtio']
190         memory: 4096
191         vcpus: 2
192         arch: amd64
193         pool: default
194         disk_size: 120G