PDF: Run YAML Linter on pod descriptors / output 11/42711/5
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 21 Sep 2017 22:44:56 +0000 (00:44 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 26 Sep 2017 17:10:34 +0000 (17:10 +0000)
commit791cb3f2d864c1f8b9473f9ba4348c4435aa813b
treed127d5fba9fefc4d869ab5afa864f53a1f08ce7c
parenta55ef9371da96dbdd267a516d6447bd9522641d0
PDF: Run YAML Linter on pod descriptors / output

We have 2 rounds of YAML files:
- PDF (input file(s) for the installer adapter templates);
- parsed PDF (output file(s) after installer adapter template parse);

Run yamllint on all these files, and summarize the output in a tuple
form: (valid YAML output, successful parse, installer templates cnt).

This helps catching various issues:
- formatting issues in installer adapter templates;
- missing values in PDFs (e.g. lf-pod4 IPMI credentials);
etc.

For now, yamllint failures for output files are non-fatal.

Sample output:

| PDF Verify Matrix        | YAML Lint  | ... | fuel   | joid   |
| pharos/config/pod1.yaml  | OK         | ... | 1/1/1  | 1/1/1  |
| intel/pod18.yaml         | OK         | ... | 1/1/1  | 1/1/1  |
| arm/pod5.yaml            | OK         | ... | 1/1/1  | 0/1/1  |
| lf/pod4.yaml             | OK         | ... | 0/1/1  | 0/1/1  |

Change-Id: Id598da89fab0e7e41641649833471194e8d248a9
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
check-jinja2.sh