forked from infra/ansible
bodhi-stg: define bodhi-valkey-storage pvc
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it> AI-assisted-by: Claude (Anthropic)
This commit is contained in:
parent
a58b8699ea
commit
06fc965500
2 changed files with 17 additions and 0 deletions
|
|
@ -73,6 +73,11 @@
|
|||
object_app: bodhi
|
||||
object_file: pvc.yml
|
||||
object_objectname: pvc.yml
|
||||
- role: openshift/object
|
||||
object_app: bodhi
|
||||
object_template: pvc.yml.j2
|
||||
object_objectname: pvc-valkey.yml
|
||||
when: env == "staging"
|
||||
- role: openshift/keytab
|
||||
keytab_app: bodhi
|
||||
keytab_key: koji-keytab
|
||||
|
|
|
|||
12
roles/openshift-apps/bodhi/templates/pvc_yml.j2
Normal file
12
roles/openshift-apps/bodhi/templates/pvc_yml.j2
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{% if env == "staging" %}
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: bodhi-valkey-storage-stg
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue