Change-Id: I3ca6623b6a5b549381f5f7e22d12db3202d14b4b
Depends-On: I443e8df96b27d9734ae01f5638ec2360987c9803
Signed-off-by: Krisztian Lengyel <krisztian.lengyel@nokia.com>
pool_name: exclusive_caas
caas_shared:
pool_name: shared_caas
- platform:
+ caas_default:
pool_name: default
- name: make cpu pooler configs
set_fact:
- cpu_poolconfigs: "{{ lookup('template', 'ncir_cpu_pooler_config.yaml.j2') | from_yaml }}"
+ cpu_poolconfigs: "{{ lookup('template', 'cpu_pooler_config.yaml.j2') | from_yaml }}"
- name: template cpu pooler fact file
copy:
content: "{{ cpu_poolconfigs | to_nice_json }}"
- dest: "/etc/ansible/facts.d/ncir_cpu_pooler_config.fact"
+ dest: "/etc/ansible/facts.d/cpu_pooler_config.fact"
become: true
become_user: root
register: cpu_pooler_template
{% if hostname != "localhost" %}
{{ hostname }}:
pools:
- {% set cpu_allocation = hostdata.get('ansible_local', {}).get('ncir_cpu_allocation', {}) %}
+ {% set cpu_allocation = hostdata.get('ansible_local', {}).get('cpu_allocation', {}) %}
{% for allocation_name, allocation in cpu_allocation.iteritems() %}
{% if allocation_name in cpu_allocation_mapping %}
{{ cpu_allocation_mapping[allocation_name]['pool_name'] }}: