Fix for proper deployment when keystone enabled and minimal OS

Due to the fact that the openstack CLI can not be found on
the minimal OS (Ubuntu Xenial + OpenSSH server ~ 363 packages)
and that some tasks related to Keystone use this utility
it should be installed like the other Ironic CLIs

Change-Id: I3c2056cd1fe8551ca7dcb7f122e8982d5f9301a5
Closes-Bug: #1747349
This commit is contained in:
Olivier Bourdon 2018-02-01 11:32:09 +01:00
parent b2b168d4ef
commit 0e4456ae3a
2 changed files with 12 additions and 2 deletions

View File

@ -11,9 +11,11 @@ Installation with Keystone
Bifrost can now install and make use of keystone. In order to enable
this as part of the installation, the ``enable_keystone`` variable
must be set to ``true``, either in ``playbooks/inventory/group_vars/target``
or on the command line during installation. Example::
or on the command line during installation. Note that enable_keystone and
noauth_mode are mutually exclusive so they should have an opposite value of
oneanother. Example::
ansible-playbook -vvvv -i inventory/target install.yaml -e enable_keystone=true
ansible-playbook -vvvv -i inventory/target install.yaml -e enable_keystone=true -e noauth_mode=false
However, prior to installation, overriding credentials should be set
in order to customize the deployment to meet your needs.

View File

@ -64,6 +64,14 @@
- skip_install is not defined
- enable_venv | bool == false
- name: "Install python-openstackclient if not using a venv"
include: pip_install.yml
package=python-openstackclient
extra_args="-c {{ upper_constraints_file }}"
when:
- skip_install is not defined
- enable_venv | bool == false
- name: "Install keystone using pip"
include: pip_install.yml
package=keystone