Skip to content
Snippets Groups Projects
Commit 214d34ca authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Extra var ironic_enable_keystone_integration added."

parents c1e14025 da4fd2d6
No related branches found
No related tags found
No related merge requests found
...@@ -288,6 +288,7 @@ ironic_enabled_notification_topics: "{{ ironic_notification_topics | selectattr( ...@@ -288,6 +288,7 @@ ironic_enabled_notification_topics: "{{ ironic_notification_topics | selectattr(
#################### ####################
# Keystone # Keystone
#################### ####################
ironic_enable_keystone_integration: "{{ enable_keystone | bool }}"
ironic_ks_services: ironic_ks_services:
- name: "ironic" - name: "ironic"
type: "baremetal" type: "baremetal"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# suppressed by the deployer by setting a value for the option. # suppressed by the deployer by setting a value for the option.
[DEFAULT] [DEFAULT]
{% if not enable_keystone | bool %} {% if not ironic_enable_keystone_integration | bool %}
auth_strategy = noauth auth_strategy = noauth
{% endif %} {% endif %}
debug = {{ ironic_logging_debug }} debug = {{ ironic_logging_debug }}
...@@ -52,7 +52,7 @@ connection_recycle_time = {{ database_connection_recycle_time }} ...@@ -52,7 +52,7 @@ connection_recycle_time = {{ database_connection_recycle_time }}
max_pool_size = {{ database_max_pool_size }} max_pool_size = {{ database_max_pool_size }}
max_retries = -1 max_retries = -1
{% if enable_keystone | bool %} {% if ironic_enable_keystone_integration | bool %}
[keystone_authtoken] [keystone_authtoken]
www_authenticate_uri = {{ keystone_internal_url }} www_authenticate_uri = {{ keystone_internal_url }}
auth_url = {{ keystone_admin_url }} auth_url = {{ keystone_admin_url }}
...@@ -143,7 +143,7 @@ cafile = {{ openstack_cacert }} ...@@ -143,7 +143,7 @@ cafile = {{ openstack_cacert }}
{% endif %} {% endif %}
[inspector] [inspector]
{% if enable_keystone | bool %} {% if ironic_enable_keystone_integration | bool %}
auth_url = {{ keystone_admin_url }} auth_url = {{ keystone_admin_url }}
auth_type = password auth_type = password
project_domain_id = default project_domain_id = default
...@@ -160,7 +160,7 @@ endpoint_override = {{ ironic_inspector_internal_endpoint }} ...@@ -160,7 +160,7 @@ endpoint_override = {{ ironic_inspector_internal_endpoint }}
{% endif %} {% endif %}
[service_catalog] [service_catalog]
{% if enable_keystone | bool %} {% if ironic_enable_keystone_integration | bool %}
auth_url = {{ keystone_admin_url }} auth_url = {{ keystone_admin_url }}
auth_type = password auth_type = password
project_domain_id = default project_domain_id = default
......
...@@ -106,6 +106,28 @@ enabled_boot_interfaces`` option in ``/etc/kolla/config/ironic.conf``: ...@@ -106,6 +106,28 @@ enabled_boot_interfaces`` option in ``/etc/kolla/config/ironic.conf``:
[DEFAULT] [DEFAULT]
enabled_boot_interfaces = ipxe enabled_boot_interfaces = ipxe
Attach ironic to external keystone (optional)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In :kolla-ansible-doc:`multi-regional <user/multi-regions.html>` deployment
keystone could be installed in one region (let's say region 1) and ironic -
in another region (let's say region 2). In this case we don't install keystone
together with ironic in region 2, but have to configure ironic to connect to
existing keystone in region 1. To deploy ironic in this way we have to set
variable ``enable_keystone`` to ``"no"``.
.. code-block:: yaml
enable_keystone: "no"
It will prevent keystone from being installed in region 2.
To add keystone-related sections in ironic.conf, it is also needed to set
variable ``ironic_enable_keystone_integration`` to ``"yes"``
.. code-block:: yaml
ironic_enable_keystone_integration: "yes"
Deployment Deployment
~~~~~~~~~~ ~~~~~~~~~~
Run the deploy as usual: Run the deploy as usual:
......
---
features:
- |
New variable ``ironic_enable_keystone_integration`` was added.
It helps to add keystone connection information into
``ironic.conf`` if we want to connect to existing keystone
(not installing it at the same time).
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment