IDM server registration is fixed to one server only
Heat IdMServer can not convey multiple values of IPA servers,
and it is set to a string, limited to one IPA server only.
Since IPA ansible playbook can accept multiple values of servers,
IdMServer needs update to be changed from string to array.
Closes-Bug: #1955319
Change-Id: I4cc8837b52e6b2356b6bc4436c340b2cb83879fe
(cherry picked from commit 6d142165f1
)
This commit is contained in:
parent
104db89edf
commit
6c10b58e7a
|
@ -39,11 +39,11 @@ parameters:
|
|||
through DNS and does not have to be set explicitly.
|
||||
type: string
|
||||
IdMServer:
|
||||
default: ''
|
||||
default: []
|
||||
description: FQDN for the FreeIPA server. If you set this value, IdMDomain
|
||||
also has to be provided. Typically, this is discovered
|
||||
through DNS and does not have to be set explicitly.
|
||||
type: string
|
||||
type: comma_delimited_list
|
||||
IdMNovaKeytab:
|
||||
default: 'FILE:/etc/novajoin/krb5.keytab'
|
||||
description: keytab for the nova/[host fqdn] user on the FreeIPA server.
|
||||
|
@ -82,7 +82,7 @@ parameters:
|
|||
conditions:
|
||||
idm_server_provided:
|
||||
not:
|
||||
equals: [{get_param: IdMServer}, ""]
|
||||
equals: [{get_param: IdMServer}, []]
|
||||
|
||||
outputs:
|
||||
role_data:
|
||||
|
@ -115,7 +115,7 @@ outputs:
|
|||
environment:
|
||||
if:
|
||||
- idm_server_provided
|
||||
- IPA_HOST: {get_param: IdMServer}
|
||||
- IPA_HOST: {get_param: [IdMServer, 0]}
|
||||
IPA_USER: "nova/{{ ansible_facts['fqdn'] }}"
|
||||
KRB5_CLIENT_KTNAME: {get_param: IdMNovaKeytab}
|
||||
- IPA_USER: "nova/{{ ansible_facts['fqdn'] }}"
|
||||
|
|
Loading…
Reference in New Issue