b57ec01c4152806b15c3363f4412670ffd9d53d1
[joid.git] / ci / config_tpl / juju2 / maas_tpl / deployment.yaml
1 opnfv-{{ lab.location }}{{ lab.racks[0].rack }}-maas:
2   juju-bootstrap:
3 {% include 'juju-bootstrap.yaml' %}
4   maas:
5     apt_sources:
6     - ppa:maas/stable
7     - ppa:juju/stable
8     arch: amd64
9     boot_source:
10       keyring_filename: /usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
11       selections:
12         '1':
13           arches: amd64
14           labels: release
15           os: ubuntu
16           release: xenial
17           subarches: '*'
18       url: http://maas.ubuntu.com/images/ephemeral-v2/releases/
19     disk_size: 160G
20     interfaces:
21 {% for net in opnfv.spaces %}
22     - bridge={{ net.bridge }},model=virtio
23 {% endfor %}
24     ip_address: {{ opnfv.spaces_dict.admin.cidr[:-4] }}5
25     memory: 4096
26     name: opnfv-{{ lab.location }}{{ lab.racks[0].rack }}
27     network_config: |
28 {% include 'maas-network_config.yaml' %}
29     node_group_ifaces:
30 {% include 'maas-node_group_ifaces.yaml' %}
31     nodes:
32 {% include 'maas-nodes.yaml' %}
33     password: ubuntu
34     pool: default
35     release: trusty
36     settings:
37       maas_name: {{ lab.location }}{{ lab.racks[0].rack }}
38       main_archive: http://archive.ubuntu.com/ubuntu
39       upstream_dns: {{ lab.racks[0].dns }}
40     user: ubuntu
41     vcpus: 4
42     virsh:
43       rsa_priv_key: {{ os.home }}/.ssh/id_rsa
44       rsa_pub_key: {{ os.home }}/.ssh/id_rsa.pub
45       uri: qemu+ssh://{{ os.user }}@{{ os.brAdmIP }}/system