X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=site_type%2Fsriov%2Ftemplates%2Fbaremetal%2Frack.j2;h=d265d786011453c115323bfd4355861480b0072a;hb=3395a537e26721ec33a80f66686ca932f9328722;hp=464a8264b0f082c55ed25aae9abbc78cf0aca998;hpb=4e22d426fc72fbb3824223dacbbe5f40a88dd720;p=yaml_builds.git diff --git a/site_type/sriov/templates/baremetal/rack.j2 b/site_type/sriov/templates/baremetal/rack.j2 index 464a826..d265d78 100644 --- a/site_type/sriov/templates/baremetal/rack.j2 +++ b/site_type/sriov/templates/baremetal/rack.j2 @@ -48,6 +48,16 @@ data: rack: RACK01 tags: - 'masters' +{% if 'platform' in yaml %} + platform: + kernel_params: +{% for key, value in yaml.platform.kernel_params.items() %} + {{key}}: '{{value}}' +{% endfor %} +{% if 'vcpu_pin_set' in yaml.platform %} + isolcpus: '{{yaml.platform.vcpu_pin_set}}' +{% endif %} +{% endif %} {% endfor %} {% if 'workers' in yaml %}{% for server in yaml.workers %} --- @@ -84,5 +94,15 @@ data: rack: RACK01 tags: - 'workers' +{% if 'platform' in yaml %} + platform: + kernel_params: +{% for key, value in yaml.platform.kernel_params.items() %} + {{key}}: '{{value}}' +{% endfor %} +{% if 'vcpu_pin_set' in yaml.platform %} + isolcpus: '{{yaml.platform.vcpu_pin_set}}' +{% endif %} +{% endif %} {% endfor %}{% endif %} ...