Move ceph_admin_extra_vars logic to tripleo-ansible

Instead of creating ceph_admin_extra_vars with
distribute_private_key always set to true, set
that variable to true only when appropriate based
on logic in the depends-on patch.

Also, it is not necessary to override the values of
tripleo_admin_generate_key or ssh_servers to create
the ceph-admin user for cephadm.

Related-Bug: #1928717
Depends-On: I8343c419c140670f01bdc94b4c8130004bac64e1
Change-Id: I2bacf82f85e5c78f5ae603460919cf3ff7130e9c
(cherry picked from commit 9fb6b36f14)
This commit is contained in:
John Fulton 2021-05-17 20:20:44 +00:00 committed by Francesco Pantano
parent ba1d7b2768
commit 8775a8bbe1
1 changed files with 0 additions and 12 deletions

View File

@ -579,18 +579,6 @@ outputs:
ms_client_mode: secure ms_client_mode: secure
- {get_attr: [DefaultCephConfigOverrides, value, vars]} - {get_attr: [DefaultCephConfigOverrides, value, vars]}
cephadm_extra_vars: {get_attr: [CephAdmVars, value, vars]} cephadm_extra_vars: {get_attr: [CephAdmVars, value, vars]}
ceph_admin_extra_vars: # user creation
tripleo_admin_generate_key: false
distribute_private_key: true
tripleo_admin_user: ceph-admin
ssh_servers: "{{ groups['ceph_mon'] |
union(groups['ceph_osd']|default([])) |
union(groups['ceph_mgr']|default([])) |
union(groups['ceph_rgw']|default([])) |
union(groups['ceph_mds']|default([])) |
union(groups['ceph_nfs']|default([])) |
union(groups['ceph_rbdmirror']|default([])) |
unique }}"
- name: Prepare cephadm user and keys - name: Prepare cephadm user and keys
include_role: include_role:
name: tripleo_run_cephadm name: tripleo_run_cephadm