Code Review
/
ta
/
infra-ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Initial commit
[ta/infra-ansible.git]
/
roles
/
allocate_cpu_cores
/
templates
/
ncir_cpu_allocation.fact.j2
diff --git a/roles/allocate_cpu_cores/templates/ncir_cpu_allocation.fact.j2
b/roles/allocate_cpu_cores/templates/ncir_cpu_allocation.fact.j2
new file mode 100644
(file)
index 0000000..
ab31352
--- /dev/null
+++ b/
roles/allocate_cpu_cores/templates/ncir_cpu_allocation.fact.j2
@@ -0,0
+1,9
@@
+{# Copyright (C) 2018 Nokia #}
+{
+{% for s in ncir_cpu_sets %}
+ "{{ s }}": {
+ "set" : {{ ncir_cpu_sets[s] | sort }},
+ "list": "{{ ncir_cpu_sets[s] | set_to_cpulist }}"
+ }{{ "," if not loop.last else "" }}
+{% endfor %}
+}