mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 06:12:54 +00:00
Fix var so that generated secret names are added to spec backup
This commit is contained in:
@@ -10,18 +10,22 @@
|
|||||||
|
|
||||||
- name: Set AWX object
|
- name: Set AWX object
|
||||||
set_fact:
|
set_fact:
|
||||||
awx_spec:
|
_awx: "{{ this_awx['resources'][0]['spec'] }}"
|
||||||
spec: "{{ this_awx['resources'][0]['spec'] }}"
|
|
||||||
|
|
||||||
- name: Set names of backed up secrets in the CR spec
|
- name: Set names of backed up secrets in the CR spec
|
||||||
set_fact:
|
set_fact:
|
||||||
awx_spec: "{{ awx_spec | combine ({ item.key : item.value }) }}"
|
_awx: "{{ _awx | combine ({ item.key : item.value }) }}"
|
||||||
with_items:
|
with_items:
|
||||||
- {"key": "secret_key_secret", "value": "{{ this_awx['resources'][0]['status']['secretKeySecret'] }}"}
|
- {"key": "secret_key_secret", "value": "{{ this_awx['resources'][0]['status']['secretKeySecret'] }}"}
|
||||||
- {"key": "admin_password_secret", "value": "{{ this_awx['resources'][0]['status']['adminPasswordSecret'] }}"}
|
- {"key": "admin_password_secret", "value": "{{ this_awx['resources'][0]['status']['adminPasswordSecret'] }}"}
|
||||||
- {"key": "broadcast_websocket_secret", "value": "{{ this_awx['resources'][0]['status']['broadcastWebsocketSecret'] }}"}
|
- {"key": "broadcast_websocket_secret", "value": "{{ this_awx['resources'][0]['status']['broadcastWebsocketSecret'] }}"}
|
||||||
- {"key": "postgres_configuration_secret", "value": "{{ this_awx['resources'][0]['status']['postgresConfigurationSecret'] }}"}
|
- {"key": "postgres_configuration_secret", "value": "{{ this_awx['resources'][0]['status']['postgresConfigurationSecret'] }}"}
|
||||||
|
|
||||||
|
- name: Set AWX object
|
||||||
|
set_fact:
|
||||||
|
awx_spec:
|
||||||
|
spec: "{{ _awx }}"
|
||||||
|
|
||||||
- name: Write awx object to pvc
|
- name: Write awx object to pvc
|
||||||
k8s_exec:
|
k8s_exec:
|
||||||
namespace: "{{ backup_pvc_namespace }}"
|
namespace: "{{ backup_pvc_namespace }}"
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
- name: Set Postgres Configuration Secret name
|
||||||
|
set_fact:
|
||||||
|
postgres_configuration_secret: "{{ spec['postgres_configuration_secret'] | default(postgres_configuration_secret) }}"
|
||||||
|
|
||||||
- name: Check for specified PostgreSQL configuration
|
- name: Check for specified PostgreSQL configuration
|
||||||
k8s_info:
|
k8s_info:
|
||||||
kind: Secret
|
kind: Secret
|
||||||
|
|||||||
Reference in New Issue
Block a user