Skip to content
Snippets Groups Projects
Commit 73abf0e5 authored by Maksim Malchuk's avatar Maksim Malchuk Committed by Mark Goddard
Browse files

Fix an issue when user forgot combine custom passwords


Fixes an issue when user forgot to combine
'kolla_ansible_custom_passwords',
'kolla_ansible_default_custom_passwords' and own dictionary with
custom passwords in configuration files. Now
'kolla_ansible_extra_custom_passwords' should provide only user
custom passwords to add or override in the passwords.yml.

Change-Id: I4813a1f6ab9cb566596e806bd0ada6dff342d119
Signed-off-by: default avatarMaksim Malchuk <maksim.malchuk@gmail.com>
parent d52b764a
No related branches found
No related tags found
No related merge requests found
...@@ -600,9 +600,15 @@ kolla_ansible_default_custom_passwords: >- ...@@ -600,9 +600,15 @@ kolla_ansible_default_custom_passwords: >-
if compute_libvirt_enabled | bool and compute_libvirt_enable_sasl | bool if compute_libvirt_enabled | bool and compute_libvirt_enable_sasl | bool
else {}) }} else {}) }}
# Dictionary containing extra custom passwords to add or override in the Kolla
# passwords file.
kolla_ansible_extra_custom_passwords: {}
# Dictionary containing custom passwords to add or override in the Kolla # Dictionary containing custom passwords to add or override in the Kolla
# passwords file. # passwords file.
kolla_ansible_custom_passwords: "{{ kolla_ansible_default_custom_passwords }}" kolla_ansible_custom_passwords: >-
{{ kolla_ansible_default_custom_passwords |
combine(kolla_ansible_extra_custom_passwords) }}
############################################################################### ###############################################################################
# OpenStack API addresses. # OpenStack API addresses.
......
...@@ -595,27 +595,35 @@ variable, if present. The file is generated to ...@@ -595,27 +595,35 @@ variable, if present. The file is generated to
``$KAYOBE_CONFIG_PATH/kolla/passwords.yml``, and should be stored along with ``$KAYOBE_CONFIG_PATH/kolla/passwords.yml``, and should be stored along with
other Kayobe configuration files. This file should not be manually modified. other Kayobe configuration files. This file should not be manually modified.
``kolla_ansible_custom_passwords``
Dictionary containing custom passwords to add or override in the Kolla
passwords file. Default is ``{{ kolla_ansible_default_custom_passwords
}}``, which contains SSH keys for use by Kolla Ansible and Bifrost.
Configuring Custom Passwords Configuring Custom Passwords
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In order to write additional passwords to ``passwords.yml``, set the kayobe The following variables are used to configure custom passwords:
variable ``kolla_ansible_custom_passwords`` in
``$KAYOBE_CONFIG_PATH/kolla.yml``. * ``kolla_ansible_default_custom_passwords``: Dictionary containing default
custom passwords, required by Kolla Ansible. Contains SSH keys authorized by
kolla user on Kolla hosts, SSH keys authorized in hosts deployed by Bifrost,
Docker Registry password and compute libVirt custom passwords.
* ``kolla_ansible_extra_custom_passwords``: Dictionary containing extra custom
passwords to add or override in the Kolla passwords file. Default is an empty
dictionary.
* ``kolla_ansible_custom_passwords``: Dictionary containing custom passwords to
add or override in the Kolla passwords file. Default is the combination of
the ``kolla_ansible_default_custom_passwords`` and
``kolla_ansible_extra_custom_passwords``.
In this example we add our own ``my_custom_password`` and override
``keystone_admin_password``:
.. code-block:: yaml .. code-block:: yaml
:caption: ``$KAYOBE_CONFIG_PATH/kolla.yml`` :caption: ``$KAYOBE_CONFIG_PATH/kolla.yml``
--- ---
# Dictionary containing custom passwords to add or override in the Kolla # Dictionary containing extra custom passwords to add or override in the
# passwords file. # Kolla passwords file.
kolla_ansible_custom_passwords: > kolla_ansible_extra_custom_passwords:
{{ kolla_ansible_default_custom_passwords | my_custom_password: 'correcthorsebatterystaple'
combine({'my_custom_password': 'correcthorsebatterystaple'}) }} keystone_admin_password: 'superduperstrongpassword'
Control Plane Services Control Plane Services
====================== ======================
......
...@@ -454,6 +454,10 @@ ...@@ -454,6 +454,10 @@
# Kolla passwords file. # Kolla passwords file.
#kolla_ansible_default_custom_passwords: #kolla_ansible_default_custom_passwords:
# Dictionary containing extra custom passwords to add or override in the Kolla
# passwords file.
#kolla_ansible_extra_custom_passwords:
# Dictionary containing custom passwords to add or override in the Kolla # Dictionary containing custom passwords to add or override in the Kolla
# passwords file. # passwords file.
#kolla_ansible_custom_passwords: #kolla_ansible_custom_passwords:
......
---
fixes:
- |
Fixes an issue when user forgot to combine
``kolla_ansible_custom_passwords``,
``kolla_ansible_default_custom_passwords`` and own dictionary with custom
passwords in configuration files. Now
``kolla_ansible_extra_custom_passwords`` should provide only user custom
passwords to add or override in the passwords.yml.
upgrade:
- |
Now no need to combine ``kolla_ansible_default_custom_passwords`` and
``kolla_ansible_custom_passwords`` in your custom configuration. Just use
``kolla_ansible_extra_custom_passwords`` to add or override passwords.
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