firmitas: add imagestream template and task

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2024-06-28 17:00:41 +01:00
parent c0dc013186
commit bd1f4f82e8
No known key found for this signature in database
GPG key ID: A5893AB6474AC37D
3 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,11 @@
---
# generate the templates for project to be created
- name: create the imagestream template
template:
src: "imagestream.yml"
dest: "/root/ocp4/openshift-apps/firmitas/imagestream.yml"
mode: 0770
# apply created openshift resources
- name: oc apply resources
command: "/root/bin/oc apply -f /root/ocp4/openshift-apps/firmitas/imagestream.yml"

View file

@ -3,5 +3,6 @@
- include_tasks: create-namespace.yml
- include_tasks: create-pagure-apikey-secret.yml
- include_tasks: create-persistent-volume-claim.yml
- include_tasks: create-imagestream.yml
- include_tasks: create-buildconfig.yml
- include_tasks: create-deployment.yml

View file

@ -0,0 +1,7 @@
---
kind: ImageStream
apiVersion: image.openshift.io/v1
metadata:
name: "{{ firmitas_application_name }}"
namespace: "{{ firmitas_namespace }}"