mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Added support to override pg_sslmode
This commit is contained in:
@@ -207,9 +207,12 @@ stringData:
|
|||||||
database: <desired database name>
|
database: <desired database name>
|
||||||
username: <username to connect as>
|
username: <username to connect as>
|
||||||
password: <password to connect with>
|
password: <password to connect with>
|
||||||
|
sslmode: prefer
|
||||||
type: Opaque
|
type: Opaque
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Note**: The variable `sslmode` is valid for `external` databases only. The allowed values are: `prefer`, `disable`, `allow`, `require`, `verify-ca`, `verify-full`.
|
||||||
|
|
||||||
#### Migrating data from an old AWX instance
|
#### Migrating data from an old AWX instance
|
||||||
|
|
||||||
For instructions on how to migrate from an older version of AWX, see [migration.md](./docs/migration.md).
|
For instructions on how to migrate from an older version of AWX, see [migration.md](./docs/migration.md).
|
||||||
|
|||||||
@@ -78,6 +78,7 @@
|
|||||||
awx_postgres_database: "{{ pg_config['resources'][0]['data']['database'] | b64decode }}"
|
awx_postgres_database: "{{ pg_config['resources'][0]['data']['database'] | b64decode }}"
|
||||||
awx_postgres_port: "{{ pg_config['resources'][0]['data']['port'] | b64decode }}"
|
awx_postgres_port: "{{ pg_config['resources'][0]['data']['port'] | b64decode }}"
|
||||||
awx_postgres_host: "{{ pg_config['resources'][0]['data']['host'] | b64decode }}"
|
awx_postgres_host: "{{ pg_config['resources'][0]['data']['host'] | b64decode }}"
|
||||||
|
awx_postgres_sslmode: "{{ pg_config['resources'][0]['data']['sslmode'] | default('prefer'|b64encode) | b64decode }}"
|
||||||
|
|
||||||
- name: Look up details for this deployment
|
- name: Look up details for this deployment
|
||||||
k8s_info:
|
k8s_info:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ DATABASES = {
|
|||||||
'PASSWORD': "{{ awx_postgres_pass | quote }}",
|
'PASSWORD': "{{ awx_postgres_pass | quote }}",
|
||||||
'HOST': '{{ awx_postgres_host }}',
|
'HOST': '{{ awx_postgres_host }}',
|
||||||
'PORT': "{{ awx_postgres_port }}",
|
'PORT': "{{ awx_postgres_port }}",
|
||||||
'OPTIONS': { 'sslmode': '{{ pg_sslmode|default("prefer") }}',
|
'OPTIONS': { 'sslmode': '{{ awx_postgres_sslmode }}',
|
||||||
'sslrootcert': '{{ ca_trust_bundle }}',
|
'sslrootcert': '{{ ca_trust_bundle }}',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user