Hello, OPNFV installer projects 81/34281/11
authoragardner <agardner@linuxfoundation.org>
Thu, 4 May 2017 15:36:05 +0000 (11:36 -0400)
committeragardner <agardner@linuxfoundation.org>
Fri, 19 May 2017 18:26:56 +0000 (14:26 -0400)
commite3a14b510778a4562875600f7b393b27c1dc8eba
tree38be0bc4c5277f37cefe01fafef54609c512f667
parentc8eba7272eb090642e2489a9dafab10060c1e238
Hello, OPNFV installer projects

Firstly, this patchset looks a bit messy at the onset.  relevant
parts are

installers/apex/*.j2
installers/joid/*.j2
installers/compass4nfv/*.j2

and the new verify job that runs check-jinja2.sh

If you look at installers/*/pod_config.yaml.j2 you will see the network
settings for apex joid and compass4nfv installers, the possible to template
hard coded values have been replaced with jinja2 vales, that are populated by
reading one of labs/*/*/config/pod.yaml

eg:
nodes:
  - name: pod1-node1

becomes
  - name: {{ conf['nodes'][0]['name'] }}

In my last patchset I had ignored data already present in the pod.yaml (which is defined in the pharos spec here: https://gerrit.opnfv.org/gerrit/gitweb?p=pharos.git;a=blob;f=config/pod1.yaml )

I created by own yaml file in an attempt to figure out what all the
installers needed to know to install on any given pod.

this was counter productive.

I have included a script (securedlab/check-jinja2.sh)  that will check all

securedlab/installers/*/pod_config.yaml.j2
against all
securedlab/labs/*/pod*.yaml

This is a first step towards having your installers run on any pod that
has a pod file created for it. (securedlab/labs/*/pod[pod-number].yaml)

Moving forward I would like your input on identifing variables in your
installers configs that are needed for deployment but not covered by
securedlab/labs/*/pod*.yaml

Thanks for your time and feedback
Best Regards,
Aric

Change-Id: I5f2f2b403f219a1ec4b35e46a5bc49037a0a89cf
Signed-off-by: agardner <agardner@linuxfoundation.org>
25 files changed:
check-jinja2.sh
installers/apex/network_settings.jinja2 [deleted file]
installers/apex/pod_config.yaml.j2 [new file with mode: 0644]
installers/compass4nfv/network.yml.j2 [new file with mode: 0644]
installers/compass4nfv/network_ocl.yml.j2 [new file with mode: 0644]
installers/compass4nfv/network_onos.yml.j2 [new file with mode: 0644]
installers/compass4nfv/network_openo.yml.j2 [new file with mode: 0644]
installers/compass4nfv/os-nosdn-nofeature-ha.yml.j2 [new file with mode: 0644]
installers/compass4nfv/os-nosdn-openo-ha.yml.j2 [new file with mode: 0644]
installers/compass4nfv/os-ocl-nofeature-ha.yml.j2 [new file with mode: 0644]
installers/compass4nfv/os-odl_l2-moon-ha.yml.j2 [new file with mode: 0644]
installers/compass4nfv/os-odl_l2-nofeature-ha.yml.j2 [new file with mode: 0644]
installers/compass4nfv/os-odl_l3-nofeature-ha.yml.j2 [new file with mode: 0644]
installers/compass4nfv/os-onos-nofeature-ha.yml.j2 [new file with mode: 0644]
installers/compass4nfv/os-onos-sfc-ha.yml.j2 [new file with mode: 0644]
installers/joid/labconfig.jinja2 [deleted file]
installers/joid/pod_config.yaml.j2 [new file with mode: 0644]
labs/ericsson/pod1.yaml
labs/ericsson/pod2.yaml
labs/intel/pod5.yaml [deleted file]
labs/lf/pod1/pod.yaml [deleted file]
labs/zte/pod1.yaml [moved from labs/zte/pod1/config/pod.yaml with 97% similarity]
labs/zte/pod2.yaml [moved from labs/zte/pod2/config/pod.yaml with 99% similarity]
labs/zte/pod3.yaml [moved from labs/zte/pod3/config/pod.yaml with 99% similarity]
utils/generate_config.py