commit | 9749b27f0285da49b286c6dce850696b1ba40917 | [log] [tgz] |
---|---|---|
author | Marek Celoud <mceloud@mirantis.com> | Mon Jul 10 17:47:42 2017 +0200 |
committer | Marek Celoud <mceloud@mirantis.com> | Mon Jul 10 17:47:42 2017 +0200 |
tree | 30c61d2d1aadd25950681c386d819bc39eb931c2 | |
parent | 67f3d0b1d949b5ab291450a8669692112b8d87f3 [diff] |
fix interfaces for k8s and opencontrail Change-Id: I70129e5f5e4da214ab2df82fca0a6e9140bf459e
diff --git a/classes/cluster/k8s_ha_contrail/infra/config.yml b/classes/cluster/k8s_ha_contrail/infra/config.yml index 7a50368..30e09e7 100644 --- a/classes/cluster/k8s_ha_contrail/infra/config.yml +++ b/classes/cluster/k8s_ha_contrail/infra/config.yml
@@ -24,6 +24,15 @@ reactor: reclass/minion/classify: - salt://reclass/reactor/node_register.sls + linux: + network: + interface: + ens4: + enabled: true + type: eth + proto: static + address: ${_param:single_address} + netmask: 255.255.255.0 reclass: storage: class_mapping:
diff --git a/classes/cluster/k8s_ha_contrail/infra/init.yml b/classes/cluster/k8s_ha_contrail/infra/init.yml index 750d100..166a17b 100644 --- a/classes/cluster/k8s_ha_contrail/infra/init.yml +++ b/classes/cluster/k8s_ha_contrail/infra/init.yml
@@ -20,13 +20,6 @@ names: - ${_param:infra_config_hostname} - ${_param:infra_config_hostname}.${_param:cluster_domain} - interface: - ens4: - enabled: true - type: eth - proto: static - address: ${_param:single_address} - netmask: 255.255.255.0 system: name: ${_param:infra_config_hostname} domain: ${_param:cluster_domain}
diff --git a/classes/cluster/k8s_ha_contrail/opencontrail/compute.yml b/classes/cluster/k8s_ha_contrail/opencontrail/compute.yml index 912e753..d6f92b6 100644 --- a/classes/cluster/k8s_ha_contrail/opencontrail/compute.yml +++ b/classes/cluster/k8s_ha_contrail/opencontrail/compute.yml
@@ -23,3 +23,8 @@ pool: network: hash: 2276df10feae8f09fb50dce3a96fff6c + linux: + network: + concat_iface_files: + - src: '/etc/network/interfaces.d/50-cloud-init.cfg' + dst: '/etc/network/interfaces' \ No newline at end of file