Skip to content

Commit

Permalink
Fixes for PvC running on PvC with sidecar FreeIPA (#120)
Browse files Browse the repository at this point in the history
* Add guard condition around setup FreeIPA client task
* Remove psycopg2 install during db configuration

Signed-off-by: Jim Enright <jenright@cloudera.com>
  • Loading branch information
jimright authored Aug 24, 2023
1 parent aaf287b commit 800fd34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 0 additions & 8 deletions roles/deployment/databases/tasks/postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@

---

- name: Ensure psycopg2 is installed
package:
name: "{{ ((hostvars[item]['ansible_os_family'] == 'RedHat') and (hostvars[item]['ansible_distribution_major_version'] == '7')) | ternary('python-psycopg2', 'python3-psycopg2') }}"
with_items: "{{ databases | json_query('*.host') | unique }}"
delegate_to: "{{ item }}"
connection: ssh
when: item in groups.db_server

- name: Create database roles
postgresql_user:
name: "{{ databases[item].user }}"
Expand Down
1 change: 1 addition & 0 deletions roles/infrastructure/krb5_client/tasks/freeipa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
ipaserver_realm: "{{ krb5_realm }}"
ipaserver_domain: "{{ krb5_domain | default(krb5_realm | lower) }}"
ipaclient_servers: "{{ groups['krb5_server'] }}"
when: "krb5_kdc_type == 'Red Hat IPA' and 'krb5_server' in groups"

- name: Include Private Cloud config changes
ansible.builtin.include_tasks: pvc_configs.yml
Expand Down

0 comments on commit 800fd34

Please sign in to comment.