Skip to content

Commit

Permalink
EUS: ensure SELinux allows connection to DB
Browse files Browse the repository at this point in the history
Needed in case EUS is on different server than Yoda portal.
  • Loading branch information
stsnel committed Nov 27, 2023
1 parent b8835bd commit 2ef4672
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/yoda_external_user_service/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,13 @@
ansible.builtin.command: 'restorecon -r /var/www/extuser'
when: ansible_selinux.status == "enabled"
changed_when: false


# This is needed in case the EUS is on a different host than the Yoda portal
# (e.g. in the full vagrant setup).
- name: Allow EUS to connect to PostgreSQL
ansible.posix.seboolean:
name: httpd_can_network_connect
state: true
persistent: true
when: ansible_selinux.status == "enabled"

0 comments on commit 2ef4672

Please sign in to comment.