Takes a template file and feeds it values 49/33849/3
authoragardner <agardner@linuxfoundation.org>
Wed, 26 Apr 2017 11:48:59 +0000 (13:48 +0200)
committeragardner <agardner@linuxfoundation.org>
Thu, 27 Apr 2017 13:02:17 +0000 (15:02 +0200)
commit605523f4809302feea325eedb24755c4b943a661
tree8990e0434e2a0987c01277e3e0af48af44d3f9f6
parent96333a991d30582aab727269e2024e7c2b9b9f19
Takes a template file and feeds it values

Values come from a pod config file.
This is just an example, only ipmi_ips are templated at this time.

eg: address: {{ config['global_details']['ipmi_ips'][0] }}

test like this:

./utils/generate_config.py -y labs/intel/pod5/pod.yaml -j
installers/joid/labconfig.jinja2

releng should have a new job, validate-templates
that looks for
pattern: 'utils/generate_config.yml'
pattern: '**/*.jinja2'

and tests that templating does not error.

Change-Id: I7f781abb702afcfccf7ed17674378cffe4a7177d
Signed-off-by: agardner <agardner@linuxfoundation.org>
installers/apex/network_settings.jinja2 [new file with mode: 0755]
installers/joid/labconfig.jinja2 [new file with mode: 0644]
labs/intel/pod5/pod.yaml [new file with mode: 0644]
utils/generate_config.py [new file with mode: 0755]