Skip to content

Commit

Permalink
ipareplica: Pass ipareplica_ip_addresses to client deployment part
Browse files Browse the repository at this point in the history
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".

Resolves: freeipa#1244
  • Loading branch information
t-woerner committed Jun 6, 2024
1 parent a1230ca commit e6a7b98
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion roles/ipareplica/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion roles/ipareplica/library/ipareplica_create_ipa_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion roles/ipareplica/library/ipareplica_install_ca_certs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion roles/ipareplica/library/ipareplica_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion roles/ipareplica/library/ipareplica_setup_ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion roles/ipareplica/library/ipareplica_setup_kra.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion roles/ipareplica/library/ipareplica_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
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
Expand Down
1 change: 1 addition & 0 deletions roles/ipareplica/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e6a7b98

Please sign in to comment.