From 70b83f27f3289cf976d280a079ddac73ba31591b Mon Sep 17 00:00:00 2001 From: Marc Gariepy Date: Thu, 27 Sep 2018 11:59:04 -0400 Subject: [PATCH] Add openstackclient bash completion Add bash completion in utility container. Depends-On: I70059d1b0f9eb774519420b14239ab7e3081e7eb Change-Id: I30b520986cff0eef4d7f9b08eb24cb41be6b587d (cherry picked from commit d90e74350d9c94edbde245dee07ead44807abcf0) --- inventory/group_vars/utility_all.yml | 1 + playbooks/utility-install.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/inventory/group_vars/utility_all.yml b/inventory/group_vars/utility_all.yml index bc45bc8a85..42596b59b5 100644 --- a/inventory/group_vars/utility_all.yml +++ b/inventory/group_vars/utility_all.yml @@ -29,6 +29,7 @@ utility_venv_bin: "/openstack/venvs/utility-{{ openstack_release }}/bin" # Distribution packages to be installed into the utility container utility_distro_packages: - git + - bash-completion utility_distro_openstack_clients_packages: - python-keystoneclient diff --git a/playbooks/utility-install.yml b/playbooks/utility-install.yml index 33ab1e84c0..5c3e59ecb0 100644 --- a/playbooks/utility-install.yml +++ b/playbooks/utility-install.yml @@ -146,3 +146,6 @@ executable: /bin/bash with_items: "{{ _openstack_client_list }}" + - name: Create openstack client bash_completion script + shell: | + openstack complete > /etc/bash_completion.d/openstack_client