ipareplica: Pass ipareplica_ip_addresses to client deployment part

The IP addresses set with ipareplica_ip_addresses have not been passed
to ipaclient role for client deployment part. This resulted in not
setting the IP addresses.

The description for ipareplica_ip_addresses in the ipareplica README and
also the role modules was wrong and have been fixed to "List of IPA
replica IP addresses".

Related: https://pagure.io/freeipa/issue/7405

Resolves: https://github.com/freeipa/ansible-freeipa/issues/1244
This commit is contained in:
Thomas Woerner
2024-06-05 18:18:56 +02:00
parent 81906edec6
commit 81abf6889b
8 changed files with 8 additions and 7 deletions

View File

@@ -190,7 +190,7 @@ Variable | Description | Required
`ipaservers` | This group with the IPA master full qualified hostnames. (list of strings) | mostly
`ipareplicas` | Group of IPA replica hostnames. (list of strings) | yes
`ipaadmin_password` | The password for the IPA admin user (string) | mostly
`ipareplica_ip_addresses` | The list of master server IP addresses. (list of strings) | no
`ipareplica_ip_addresses` | The list of IPA replica IP addresses. (list of strings) | no
`ipareplica_domain` | The primary DNS domain of an existing IPA deployment. (string) | no
`ipaserver_realm` | The Kerberos realm of an existing IPA deployment. (string) | no
`ipaserver_hostname` | Fully qualified name of the server. (string) | no

View File

@@ -47,7 +47,7 @@ options:
type: str
required: no
ip_addresses:
description: List of Master Server IP Addresses
description: List of IPA replica IP addresses
type: list
elements: str
required: no

View File

@@ -47,7 +47,7 @@ options:
type: str
required: no
ip_addresses:
description: List of Master Server IP Addresses
description: List of IPA replica IP addresses
type: list
elements: str
required: no

View File

@@ -49,7 +49,7 @@ options:
type: str
required: no
ip_addresses:
description: List of Master Server IP Addresses
description: List of IPA replica IP addresses
type: list
elements: str
required: no

View File

@@ -47,7 +47,7 @@ options:
type: str
required: no
ip_addresses:
description: List of Master Server IP Addresses
description: List of IPA replica IP addresses
type: list
elements: str
required: no

View File

@@ -47,7 +47,7 @@ options:
type: str
required: no
ip_addresses:
description: List of Master Server IP Addresses
description: List of IPA replica IP addresses
type: list
elements: str
required: no

View File

@@ -38,7 +38,7 @@ short_description: IPA replica deployment tests
description: IPA replica deployment tests
options:
ip_addresses:
description: List of Master Server IP Addresses
description: List of IPA replica IP addresses
type: list
elements: str
required: no

View File

@@ -125,6 +125,7 @@
ipaclient_realm: "{{ result_ipareplica_test.realm | default(omit) }}"
ipaclient_servers: "{{ ipareplica_servers | default(omit) }}"
ipaclient_hostname: "{{ result_ipareplica_test.hostname }}"
ipaclient_ip_addresses: "{{ ipareplica_ip_addresses | default(omit) }}"
ipaclient_install_packages: "{{ ipareplica_install_packages }}"
when: not result_ipareplica_test.client_enrolled