Merge "IDM server registration is fixed to one server only"

This commit is contained in:
Zuul 2022-02-12 04:56:47 +00:00 committed by Gerrit Code Review
commit 80e21ff5b4
1 changed files with 4 additions and 4 deletions

View File

@ -35,11 +35,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.
@ -78,7 +78,7 @@ parameters:
conditions:
idm_server_provided:
not:
equals: [{get_param: IdMServer}, ""]
equals: [{get_param: IdMServer}, []]
outputs:
role_data:
@ -111,7 +111,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'] }}"