forgejo: Create postgresql operator config and secret
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
parent
8bb7198a25
commit
71d3f4079f
2 changed files with 23 additions and 0 deletions
|
@ -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"
|
|
@ -5,3 +5,4 @@
|
|||
state: directory
|
||||
|
||||
- include_tasks: call-helm.yml
|
||||
- include_tasks: create-postgres-operator-config.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue