Skip to content

Commit c47a582

Browse files
authored
Add 'freeipa_enroll' optional parameter to suppress client enrollment with FreeIPA server (#129)
Signed-off-by: Webster Mudge <[email protected]>
1 parent f0b8095 commit c47a582

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

docs/freeipa.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ You must also set `krb5_kdc_type: "Red Hat IPA"`.
3030

3131
### Existing FreeIPA
3232

33-
This case is simple:
33+
Set `krb5_kdc_host` to your FreeIPA server hostname. The role `infrastructure/krb5_client` will then install the FreeIPA client and enroll it with the designated server.
3434

35-
Please set `krb5_kdc_host` to you FreeIPA server hostname.
35+
If you wish to suppress the enrollment, say you have already established enrollment outside of the automation, you can set the `freeipa_enroll` parameter to `false`.
3636

3737
### Playbook-provisioned
3838

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
3+
# Copyright 2023 Cloudera, Inc. All Rights Reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
freeipa_enroll: true

roles/infrastructure/krb5_client/tasks/freeipa.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Copyright 2021 Cloudera, Inc.
1+
---
2+
3+
# Copyright 2023 Cloudera, Inc. All Rights Reserved.
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
46
# you may not use this file except in compliance with the License.
@@ -12,7 +14,6 @@
1214
# See the License for the specific language governing permissions and
1315
# limitations under the License.
1416

15-
---
1617
- name: Fix FreeIPA Dbus configuration
1718
include_tasks: freeipa_dbus_patch.yml
1819
when:
@@ -30,7 +31,7 @@
3031
ipaserver_realm: "{{ krb5_realm }}"
3132
ipaserver_domain: "{{ krb5_domain | default(krb5_realm | lower) }}"
3233
ipaclient_servers: "{{ groups['krb5_server'] }}"
33-
when: "krb5_kdc_type == 'Red Hat IPA' and 'krb5_server' in groups"
34+
when: freeipa_enroll or 'krb5_server' in groups
3435

3536
- name: Include Private Cloud config changes
3637
ansible.builtin.include_tasks: pvc_configs.yml

0 commit comments

Comments
 (0)