mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 05:30:18 -03:30
Move to rhel8 PG10 container for persistent PG
Merge in updated liveness checks from upstream template
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
shell: |
|
||||
{{ kubectl_or_oc }} -n {{ kubernetes_namespace }} exec ansible-tower-management -- \
|
||||
bash -c "PGPASSWORD={{ pg_password | quote }} \
|
||||
scl enable rh-postgresql10 -- pg_dump --clean --create \
|
||||
pg_dump --clean --create \
|
||||
--host='{{ pg_hostname | default('postgresql') }}' \
|
||||
--port={{ pg_port | default('5432') }} \
|
||||
--username='{{ pg_username }}' \
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
block:
|
||||
- name: Set new pg image
|
||||
shell: |
|
||||
IMAGE=registry.access.redhat.com/rhscl/postgresql-10-rhel7
|
||||
IMAGE=registry.redhat.io/rhel-8/postgresql-10
|
||||
{{ kubectl_or_oc }} -n {{ kubernetes_namespace }} set image dc/postgresql postgresql=$IMAGE
|
||||
|
||||
- name: Wait for change to take affect
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
shell: |
|
||||
{{ kubectl_or_oc }} -n {{ kubernetes_namespace }} \
|
||||
exec -i ansible-tower-management -- bash -c "PGPASSWORD={{ pg_password | quote }} \
|
||||
scl enable rh-postgresql10 -- psql \
|
||||
psql \
|
||||
--host={{ pg_hostname | default('postgresql') }} \
|
||||
--port={{ pg_port | default('5432') }} \
|
||||
--username={{ pg_username }} \
|
||||
|
||||
Reference in New Issue
Block a user