Skip to content

Commit 800fd34

Browse files
authored
Fixes for PvC running on PvC with sidecar FreeIPA (#120)
* Add guard condition around setup FreeIPA client task * Remove psycopg2 install during db configuration Signed-off-by: Jim Enright <[email protected]>
1 parent aaf287b commit 800fd34

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

roles/deployment/databases/tasks/postgresql.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@
1414

1515
---
1616

17-
- name: Ensure psycopg2 is installed
18-
package:
19-
name: "{{ ((hostvars[item]['ansible_os_family'] == 'RedHat') and (hostvars[item]['ansible_distribution_major_version'] == '7')) | ternary('python-psycopg2', 'python3-psycopg2') }}"
20-
with_items: "{{ databases | json_query('*.host') | unique }}"
21-
delegate_to: "{{ item }}"
22-
connection: ssh
23-
when: item in groups.db_server
24-
2517
- name: Create database roles
2618
postgresql_user:
2719
name: "{{ databases[item].user }}"

roles/infrastructure/krb5_client/tasks/freeipa.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
ipaserver_realm: "{{ krb5_realm }}"
3131
ipaserver_domain: "{{ krb5_domain | default(krb5_realm | lower) }}"
3232
ipaclient_servers: "{{ groups['krb5_server'] }}"
33+
when: "krb5_kdc_type == 'Red Hat IPA' and 'krb5_server' in groups"
3334

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

0 commit comments

Comments
 (0)