Age | Commit message (Collapse) | Author | Files | Lines |
|
PDF populates the canonical arch name, as reported by $(uname -m).
In some cases, we need to pass the architecture read from PDF to
software components that expect it to be represend in DPKG format
(e.g. MaaS, APT on Debian systems use "amd64" instead of "x86_64").
Change-Id: I5fcef0a2c2a5cdc5332b5fab1fd284386bb865d0
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
|
|
v5 -> v6:
- IP address can be IPv4 or IPv6;
- add fallback to 'str' type for py3-incompatible 'unicode';
- fix pylint complaints (silence unnecessary ones);
Change-Id: Iea1049a7f5379e9bcb4b785fdd810b67f51c94ab
Signed-off-by: Guillermo Herrero <guillermo.herrero@enea.com>
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
|
|
Fix py3 compatibility by using 'print' function instead.
While at it, fix constant names reported by `pylint` as invalid.
Change-Id: I73e3a370560c038a8814db9758b13026dc4c0b42
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
|
|
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>
|
|
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>
|