[PDF] Switch to generate_config, unify templates 53/51253/8
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 26 Jan 2018 20:59:28 +0000 (21:59 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 5 Feb 2018 00:13:01 +0000 (01:13 +0100)
commit058c64ae668191ca8223afa581c7b3214b52fe4a
tree8fc6c8f1bb23cf8606d0a2e371979f5b3da23567
parent30d5ba634a5c249697509d7c4f29f4aca0597457
[PDF] Switch to generate_config, unify templates

- move bash template handling (previously expanded via `envsubst`)
  to lib.sh;
- move j2 template handling to lib.sh;
- move virsh network templates to 'mcp/scripts/virsh_net' subdir;
- switch virsh network templates from `envsubst` expansion to j2 and
  leverage generate_config.py, similar to PDF Fuel installer adapter;
- add relevant runtime env vars (e.g. SALT_MASTER, MAAS_IP) on the fly
  to PDF, to consume them in templates like params coming from PDF;
- parameterize virsh network definitions based on PDF (mgmt, public);

JIRA: FUEL-322

Change-Id: Ib94e78fc4f25797b9354a0552e884104da5d0003
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
.gitignore
ci/deploy.sh
mcp/reclass/classes/cluster/all-mcp-arch-common/opnfv/runtime.yml [deleted file]
mcp/reclass/classes/cluster/all-mcp-arch-common/opnfv/runtime.yml.j2 [moved from mcp/reclass/classes/cluster/all-mcp-arch-common/opnfv/pod_config.yml with 54% similarity]
mcp/reclass/classes/cluster/all-mcp-arch-common/opnfv/runtime.yml.template [deleted file]
mcp/scripts/globals.sh
mcp/scripts/lib.sh
mcp/scripts/virsh_net/net_internal.xml [moved from mcp/scripts/net_internal.xml with 100% similarity]
mcp/scripts/virsh_net/net_mcpcontrol.xml.j2 [moved from mcp/scripts/net_mcpcontrol.xml.template with 58% similarity]
mcp/scripts/virsh_net/net_mgmt.xml.j2 [moved from mcp/scripts/net_mgmt.xml with 50% similarity]
mcp/scripts/virsh_net/net_public.xml.j2 [moved from mcp/scripts/net_public.xml with 51% similarity]