add routing and DNS configuration in salt-master
Ensure ens3 is set up and default gateway is set,
also that nameserver is specified.
PROD-18280
Change-Id: Ic9afcd85abf2e5f5704e08dd50acb4cf368fd308
diff --git a/classes/cluster/sl-os-ovs/infra/config.yml b/classes/cluster/sl-os-ovs/infra/config.yml
index 945673b..0f10552 100644
--- a/classes/cluster/sl-os-ovs/infra/config.yml
+++ b/classes/cluster/sl-os-ovs/infra/config.yml
@@ -49,6 +49,7 @@
salt_master_environment_repository: "https://github.com/tcpcloud"
salt_master_environment_revision: master
reclass_config_master: ${_param:infra_config_deploy_address}
+ reclass_config_master_gateway: ${_param:infra_config_gateway_address}
single_address: ${_param:infra_config_address}
salt_master_host: 127.0.0.1
salt_master_base_environment: prd
@@ -58,6 +59,13 @@
linux:
network:
interface:
+ ens3:
+ enabled: true
+ type: eth
+ proto: static
+ address: ${_param:reclass_config_master}
+ gateway: ${_param:reclass_config_master_gateway}
+ netmask: 255.255.255.0
ens4:
enabled: true
type: eth