Parses yaml files into deploy + other fixes 81/3981/4
authorTim Rozet <trozet@redhat.com>
Fri, 4 Dec 2015 22:54:52 +0000 (17:54 -0500)
committerTim Rozet <trozet@redhat.com>
Mon, 7 Dec 2015 21:49:54 +0000 (16:49 -0500)
commitc154b444b21a7093d7e39902de05fe28b944505b
tree4e0055f3c131f9929539d714430fd5d7c82646e8
parent51ac87ec20ca9955e7fc63dd722ea2c0dbe49c32
Parses yaml files into deploy + other fixes

This patch allows deploy_settings.yaml and inventory settings to be
passed in via cmdline.  The deploy settings are overridden by cmdline
arguments.  For example, if a user specifies no_ha in cmdline it will
override what is in deploy_settings.yaml.  The inventory file provides
yaml input for the baremetal topology.

Fixes include:
 - New arguments for passing inventory and deploy_settings
 - "global_params" in deploy_settings are set as globals in script
(unless already set via cmdline)
 - "deploy_options" are loaded into an array, and checked for deployment
options (such as which SDN controller to use)
 - inventory file is parsed (for baremetal) into correct instack json
output.  The output is then written to a temp instackjson file and used
for deployment.
 - renaming of copy_materials to copy_materials_to_instack
 - spelling fixes
 - cmdline argument checking with errors and warnings

Note this patch does not yet tamper with setting network-environment
settings.

JIRA: APEX-53

Change-Id: I9dce197e23563480c584650ba967898312eab4e7
Signed-off-by: Tim Rozet <trozet@redhat.com>
ci/deploy.sh
config/inventory/intel_pod2_settings.yaml [new file with mode: 0644]