{%- from "nova/map.jinja" import controller with context %} | |
{%- if controller is defined and controller.get('enabled', False) %} | |
{%- if controller.cpu_allocation_ratio is defined %} | |
remote_agent: | |
input: | |
openstack: | |
cpu_ratio: "{{ controller.cpu_allocation_ratio }}" | |
{%- endif %} | |
agent: | |
input: | |
http_response: | |
nova-api: | |
address: "http://{{ controller.bind.private_address|replace('0.0.0.0', '127.0.0.1') }}:8774/" | |
expected_code: 200 | |
{%- endif %} |