diff --git a/ansible/roles/nova/defaults/main.yml b/ansible/roles/nova/defaults/main.yml index d92a991485..c28525e9b7 100644 --- a/ansible/roles/nova/defaults/main.yml +++ b/ansible/roles/nova/defaults/main.yml @@ -112,7 +112,7 @@ nova_services: group: "compute" image: "{{ nova_compute_image_full }}" privileged: True - enabled: "{{ True if orchestration_engine == 'KUBERNETES' else not enable_nova_fake | bool and not enable_ironic | bool }}" + enabled: "{{ True if orchestration_engine == 'KUBERNETES' else not enable_nova_fake | bool }}" volumes: - "{{ node_config_directory }}/nova-compute/:{{ container_config_directory }}/:ro" - "/etc/localtime:/etc/localtime:ro" diff --git a/ansible/roles/nova/templates/nova.conf.j2 b/ansible/roles/nova/templates/nova.conf.j2 index 191d6abdf2..9b4354297f 100644 --- a/ansible/roles/nova/templates/nova.conf.j2 +++ b/ansible/roles/nova/templates/nova.conf.j2 @@ -33,6 +33,7 @@ scheduler_host_manager = ironic_host_manager {% endif %} {% if service_name == "nova-compute-ironic" %} +host={{ ansible_hostname }}-ironic compute_driver = ironic.IronicDriver vnc_enabled = False ram_allocation_ratio = 1.0