1 ##############################################################################
2 # Copyright (c) 2018 Mirantis Inc., Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 {%- import 'net_map.j2' as nm with context %}
10 # NOTE: pod_config is generated and transferred into its final location on
11 # cfg01 only during deployment to prevent leaking sensitive data
13 - system.maas.region.single
14 - service.maas.cluster.single
15 - cluster.all-mcp-arch-common.opnfv.lab_proxy_pdf
16 - cluster.all-mcp-arch-common.opnfv.pod_config
19 linux_system_codename: bionic
20 maas_admin_username: opnfv
21 dns_server01: '{{ nm.dns_public[0] }}'
22 single_address: ${_param:infra_maas_node01_deploy_address}
23 hwe_kernel: 'ga-18.04'
24 opnfv_maas_timeout_comissioning: {{ nm.maas_timeout_comissioning }}
25 opnfv_maas_timeout_deploying: {{ nm.maas_timeout_deploying }}
31 {%- if '-ovs-' in conf.MCP_DEPLOY_SCENARIO or '-fdio-' in conf.MCP_DEPLOY_SCENARIO %}
34 comment: 'Enable 1G pagesizes on aarch64'
35 definition: '//capability[@id="asimd"]|//capability[@id="cp15_barrier"]'
36 kernel_opts: 'default_hugepagesz=1G hugepagesz=1G'
40 # Set maas.wait_for_<state> timeouts to ~2.5x of MaaS <state> timeout
41 ready: {{ nm.maas_timeout_comissioning * 150 }}
42 deployed: {{ nm.maas_timeout_deploying * 150 }}
44 boot_sources_delete_all_others: true
47 url: http://images.maas.io/ephemeral-v3/daily
48 keyring_file: /usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
49 boot_sources_selections:
51 url: "http://images.maas.io/ephemeral-v3/daily"
53 release: "${_param:linux_system_codename}"
55 {%- for arch in nm.cluster.arch %}
56 - "{{ arch | dpkg_arch }}"
65 description: Fabric for PXE/admin
69 description: PXE/admin VLAN
71 primary_rack: "${linux:network:hostname}"
74 name: {{ nm.net_admin }}
75 cidr: {{ nm.net_admin }}
76 gateway_ip: ${_param:single_address}
77 fabric: ${maas:region:fabrics:pxe_admin:name}
81 start: {{ nm.net_admin_pool_start }}
82 end: {{ nm.net_admin_pool_end }}
85 - '{{ conf.MAAS_SSH_KEY }}'
86 {%- if 'aarch64' in nm.cluster.arch %}
91 url: 'http://linux.enea.com/mcp-repos/${_param:armband_repo_version}/xenial'
92 distributions: '${_param:armband_repo_version}-armband'
95 key: ${_param:armband_key}
97 salt_master_ip: ${_param:reclass_config_master}
98 domain: ${_param:cluster_domain}
101 active_discovery_interval: 600
102 ntp_external_only: true
103 upstream_dns: ${_param:dns_server01}
104 commissioning_distro_series: 'bionic'
105 default_distro_series: 'bionic'
106 default_osystem: 'ubuntu'
107 default_storage_layout: 'lvm'
108 enable_http_proxy: true
109 disk_erase_with_secure_erase: false
110 dnssec_validation: 'no'
111 enable_third_party_drivers: true
112 network_discovery: 'enabled'
113 default_min_hwe_kernel: ${_param:hwe_kernel}
115 saltstack_repo_bionic: "deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/18.04/amd64/2017.7/ bionic main"
117 host: ${_param:single_address}
119 {%- if '-iec-' not in conf.MCP_DEPLOY_SCENARIO and conf.MCP_KERNEL_VER %}
122 bionic: &curtin_vars_bionic
125 value: 'linux-image-{{ conf.MCP_KERNEL_VER }}-generic'
129 - linux-image-{{ conf.MCP_KERNEL_VER }}-generic
130 - linux-headers-{{ conf.MCP_KERNEL_VER }}-generic
131 - linux-modules-extra-{{ conf.MCP_KERNEL_VER }}-generic
134 <<: *curtin_vars_bionic
144 net.ipv4.ip_forward: 1
151 persistent_config: /etc/iptables/rules.v4
161 rule: -s ${_param:single_address}/${_param:opnfv_net_admin_mask}
163 rule: -d ${_param:single_address}/${_param:opnfv_net_admin_mask}
170 rule: -s ${_param:single_address}/${_param:opnfv_net_admin_mask}