forgejo: Create postgresql operator config and secret

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2025-04-01 16:12:45 +01:00
parent 8bb7198a25
commit 71d3f4079f
No known key found for this signature in database
GPG key ID: A5893AB6474AC37D
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,22 @@
---
- name: Generate the postgres-cluster.yaml from template
ansible.builtin.template:
src: "postgres-cluster.yaml.j2"
dest: "/root/ocp4/openshift-apps/forgejo/postgres-cluster.yaml"
mode: "0770"
- name: Generate the postgres-secret.yaml from template
ansible.builtin.template:
src: "postgres-secret.yaml.j2"
dest: "/root/ocp4/openshift-apps/forgejo/postgres-secret.yaml"
mode: "0770"
- name: Deploy the postgres-cluster.yaml config
kubernetes.core.k8s:
state: present
src: "/root/ocp4/openshift-apps/forgejo/postgres-cluster.yaml"
- name: Deploy the postgres-secret.yaml secret
kubernetes.core.k8s:
state: present
src: "/root/ocp4/openshift-apps/forgejo/postgres-secret.yaml"

View file

@ -5,3 +5,4 @@
state: directory
- include_tasks: call-helm.yml
- include_tasks: create-postgres-operator-config.yml