diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2018-09-22 21:54:01 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2018-12-14 20:16:40 +0100 |
commit | 512968e7b23a077b7396e494624c94468afe9e38 (patch) | |
tree | 8e6c4bd1995eaf859aa79661a4652636012fd3f1 /mcp/reclass/classes | |
parent | 4ad7cf5046bbfb90d11f6c172475d75fad257149 (diff) |
[maas] Adopt maas, maasng proposed functions
JIRA: FUEL-364
Change-Id: Ia470fc8103713e7a06cd9647675b0edfb4342bf8
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/reclass/classes')
-rw-r--r-- | mcp/reclass/classes/cluster/all-mcp-arch-common/infra/maas.yml.j2 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mcp/reclass/classes/cluster/all-mcp-arch-common/infra/maas.yml.j2 b/mcp/reclass/classes/cluster/all-mcp-arch-common/infra/maas.yml.j2 index 40a14c4a6..ee1d247ad 100644 --- a/mcp/reclass/classes/cluster/all-mcp-arch-common/infra/maas.yml.j2 +++ b/mcp/reclass/classes/cluster/all-mcp-arch-common/infra/maas.yml.j2 @@ -29,6 +29,11 @@ parameters: opnfv_maas_timeout_deploying: {{ nm.maas_timeout_deploying }} maas: region: + timeout: + # Set maas.wait_for_<state> timeouts to ~2.5x of MaaS <state> timeout + ready: {{ nm.maas_timeout_comissioning * 150 }} + deployed: {{ nm.maas_timeout_deploying * 150 }} + attempts: 3 boot_sources_delete_all_others: true boot_sources: resources_mirror: @@ -103,6 +108,10 @@ parameters: cluster: saltstack_repo_xenial: "deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2017.7/ xenial main" linux: + system: + kernel: + sysctl: + net.ipv4.ip_forward: 1 network: interface: mcpcontrol_interface: @@ -138,3 +147,22 @@ parameters: address: ${_param:single_address} netmask: ${_param:opnfv_net_admin_mask} type: eth + iptables: + service: + enabled: True + chain: + POSTROUTING: + rules: + - table: nat + source_network: '${_param:single_address}/${_param:opnfv_net_admin_mask}' + jump: MASQUERADE + INPUT: + rules: + - table: filter + source_network: '${_param:single_address}/${_param:opnfv_net_admin_mask}' + jump: ACCEPT + INPUT: + rules: + - table: filter + destination_network: '${_param:single_address}/${_param:opnfv_net_admin_mask}' + jump: ACCEPT |