Disable root private key distribution by the utility playbook

There is no clear need for this behavior so it has been disabled
by default. A new var: ``utility_ssh_private_key`` has been
introduced for deployers who desire this behavior.

Change-Id: Iac51d667e19a0cabd825714dc90da73eef9c6992
This commit is contained in:
Travis Truman 2016-06-16 09:09:09 -04:00 committed by Jesse Pretorius (odyssey4me)
parent b8802f5ce1
commit 7b2a99584d
3 changed files with 14 additions and 5 deletions

View File

@ -14,3 +14,7 @@
# limitations under the License.
tempest_log_dir: /var/log/utility
# Set this if ssh access from the utility container to all other hosts is
# desired
# utility_ssh_private_key: "{{ lookup('file', '/root/.ssh/id_rsa') }}"

View File

@ -111,16 +111,15 @@
with_items: utility_pip_packages
tags:
- utility-pip-packages
- name: Grab private ssh key
set_fact:
private_ssh_key: "{{ lookup('file', '/root/.ssh/id_rsa') }}"
- name: Drop in private ssh key
- name: Distribute private ssh key
copy:
content: "{{ private_ssh_key }}"
content: "{{ utility_ssh_private_key }}"
dest: /root/.ssh/id_rsa
mode: 0600
owner: root
group: root
when:
- utility_ssh_private_key is defined
vars:
galera_address: "{{ internal_lb_vip_address }}"
utility_pip_packages:

View File

@ -0,0 +1,6 @@
---
upgrade:
- The ``utility-all.yml`` playbook will no longer distribute the deployment
host's root user's private ssh key to all utility containers. Deployers
who desire this behavior should set the ``utility_ssh_private_key``
variable.