From 512968e7b23a077b7396e494624c94468afe9e38 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sat, 22 Sep 2018 21:54:01 +0200 Subject: [maas] Adopt maas, maasng proposed functions JIRA: FUEL-364 Change-Id: Ia470fc8103713e7a06cd9647675b0edfb4342bf8 Signed-off-by: Alexandru Avadanii --- .../cluster/all-mcp-arch-common/infra/maas.yml.j2 | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'mcp/reclass/classes/cluster') 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_ timeouts to ~2.5x of MaaS 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 -- cgit 1.2.3-korg