|
40 | 40 | - Restart pulp-content |
41 | 41 | - Restart pulp-worker |
42 | 42 |
|
| 43 | +- name: Create DB SSL cert |
| 44 | + containers.podman.podman_secret: |
| 45 | + state: present |
| 46 | + name: pulp-db-ca |
| 47 | + data: "{{ lookup('ansible.builtin.file', pulp_database_ssl_ca) if pulp_database_ssl_ca else 'empty' }}" |
| 48 | + notify: |
| 49 | + - Restart pulp-api |
| 50 | + - Restart pulp-content |
| 51 | + - Restart pulp-worker |
| 52 | + |
43 | 53 | - name: Generate Django secret key |
44 | 54 | ansible.builtin.command: "bash -c 'openssl rand -base64 50 | tr -d \"\\n\" | tr \"+/\" \"-_\" > /var/lib/pulp/django_secret_key'" |
45 | 55 | args: |
|
92 | 102 | secrets: |
93 | 103 | - 'pulp-symmetric-key,type=mount,target=/etc/pulp/certs/database_fields.symmetric.key' |
94 | 104 | - 'pulp-db-password,type=env,target=PULP_DATABASES__default__PASSWORD' |
| 105 | + - 'pulp-db-ca,type=mount,target=/foremanctl-db-ca.crt' |
95 | 106 | - 'pulp-django-secret-key,type=env,target=PULP_SECRET_KEY' |
96 | 107 | env: "{{ pulp_settings_env }}" |
97 | 108 | quadlet_options: |
|
122 | 133 | secrets: |
123 | 134 | - 'pulp-symmetric-key,type=mount,target=/etc/pulp/certs/database_fields.symmetric.key' |
124 | 135 | - 'pulp-db-password,type=env,target=PULP_DATABASES__default__PASSWORD' |
| 136 | + - 'pulp-db-ca,type=mount,target=/foremanctl-db-ca.crt' |
125 | 137 | - 'pulp-django-secret-key,type=env,target=PULP_SECRET_KEY' |
126 | 138 | env: "{{ pulp_settings_env }}" |
127 | 139 | quadlet_options: |
|
152 | 164 | secrets: |
153 | 165 | - 'pulp-symmetric-key,type=mount,target=/etc/pulp/certs/database_fields.symmetric.key' |
154 | 166 | - 'pulp-db-password,type=env,target=PULP_DATABASES__default__PASSWORD' |
| 167 | + - 'pulp-db-ca,type=mount,target=/foremanctl-db-ca.crt' |
155 | 168 | - 'pulp-django-secret-key,type=env,target=PULP_SECRET_KEY' |
156 | 169 | env: "{{ pulp_settings_env }}" |
157 | 170 | quadlet_options: |
|
202 | 215 | secrets: |
203 | 216 | - 'pulp-symmetric-key,type=mount,target=/etc/pulp/certs/database_fields.symmetric.key' |
204 | 217 | - 'pulp-db-password,type=env,target=PULP_DATABASES__default__PASSWORD' |
| 218 | + - 'pulp-db-ca,type=mount,target=/foremanctl-db-ca.crt' |
205 | 219 | env: "{{ pulp_settings_database_env }}" |
206 | 220 |
|
207 | 221 | - name: Ensure Pulp admin user exists |
|
215 | 229 | secrets: |
216 | 230 | - 'pulp-symmetric-key,type=mount,target=/etc/pulp/certs/database_fields.symmetric.key' |
217 | 231 | - 'pulp-db-password,type=env,target=PULP_DATABASES__default__PASSWORD' |
| 232 | + - 'pulp-db-ca,type=mount,target=/foremanctl-db-ca.crt' |
218 | 233 | env: "{{ pulp_settings_database_env }}" |
219 | 234 |
|
220 | 235 | - name: Flush handlers to restart services |
|
0 commit comments