X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=roles%2Fallocate_cpu_cores%2Ftemplates%2Fcloud_cpu_allocation.fact.j2;fp=roles%2Fallocate_cpu_cores%2Ftemplates%2Fcloud_cpu_allocation.fact.j2;h=e7074ef8485b16bc699e7763d55716e16502d308;hb=b761808359bb9b38db9847e06bf6a074a09f7807;hp=0000000000000000000000000000000000000000;hpb=74a49ba6ef2ea715fa492db0bcd85c30398688e8;p=ta%2Finfra-ansible.git diff --git a/roles/allocate_cpu_cores/templates/cloud_cpu_allocation.fact.j2 b/roles/allocate_cpu_cores/templates/cloud_cpu_allocation.fact.j2 new file mode 100644 index 0000000..e7074ef --- /dev/null +++ b/roles/allocate_cpu_cores/templates/cloud_cpu_allocation.fact.j2 @@ -0,0 +1,9 @@ +{# Copyright (C) 2018 Nokia #} +{ +{% for s in cloud_cpu_sets %} + "{{ s }}": { + "set" : {{ cloud_cpu_sets[s] | sort }}, + "list": "{{ cloud_cpu_sets[s] | set_to_cpulist }}" + }{{ "," if not loop.last else "" }} +{% endfor %} +}