reclass, states: Parametrize runtime configuration 95/41595/8
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 10 Sep 2017 21:33:36 +0000 (23:33 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 12 Sep 2017 02:52:30 +0000 (04:52 +0200)
commit4b11912d2dc915d642d82e6da0c94e185ec66c99
tree278e25e5d8be4c690c8cf277eb851c5b5744730d
parenta760c973e420371b07ac1739ba2d32a1df87226f
reclass, states: Parametrize runtime configuration

mcpcontrol virsh network, as well as MaaS PXE network are installer
specific, and not POD specific.
Therefore, these should be easily parametrized without the PDF,
using only installer inputs (e.g. env vars passed via Jenkins).

- add new <all-mcp-ocata-common.opnfv.runtime> reclass class;
- parametrize at runtime new reclass class based on global vars;
- factor out MaaS deploy address / config using new mechanism;
- parametrize at runtime virsh network definitions based on template;
- add new "maas.pxe_route" sls for configuring routing on cfg01;
- replace env vars with the new sls in "maas" state;

NOTE: baremetal parametrization will be handled later.

Change-Id: Ifd61143d818fb088b3f4395388ba769bbc49156e
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
18 files changed:
.gitignore
ci/deploy.sh
mcp/config/states/maas
mcp/patches/0005-maas-module-Obtain-fabric-ID-from-CIDR.patch
mcp/reclass/classes/cluster/all-mcp-ocata-common/init.yml
mcp/reclass/classes/cluster/all-mcp-ocata-common/opnfv/.gitignore [new file with mode: 0644]
mcp/reclass/classes/cluster/all-mcp-ocata-common/opnfv/init.yml [new file with mode: 0644]
mcp/reclass/classes/cluster/all-mcp-ocata-common/opnfv/runtime.yml.template [new file with mode: 0644]
mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/init.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/maas.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/infra/init.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/infra/maas.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/init.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/maas.yml
mcp/reclass/classes/cluster/virtual-mcp-ocata-common/infra/config.yml
mcp/salt-formulas/maas/pxe_route.sls [new file with mode: 0644]
mcp/scripts/net_mcpcontrol.xml [deleted file]
mcp/scripts/net_mcpcontrol.xml.template [new file with mode: 0644]