WIP gitea

This commit is contained in:
Adrien Reslinger 2020-07-14 12:10:19 +02:00
parent 7670dfe469
commit 3dc27886cb
12 changed files with 218 additions and 45 deletions

View file

@ -1,3 +1,30 @@
---
- name: Gitea setup
block:
- name: Install Gitea dynamic files
k8s:
state: present
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('template', 'gitea/' + item) | from_yaml }}"
with_items:
- gitea-Namespace.yaml.j2
- gitea-pvc.yml.j2
- gitea-IngressRoute.yml.j2
# - gitea-IngressRouteTCP.yml.j2
- name: Install Gitea static files
k8s:
state: present
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('file', 'gitea/' + item) | from_yaml }}"
with_items:
- gitea-ConfigMap.yaml
- gitea-Deployment.yaml
- gitea-Service.yaml
tags:
- gitea
- name: Drone setup
block:
- name: Configure environnement
@ -9,7 +36,6 @@
with_items:
- drone-Namespace.yaml.j2
tags:
# - drone
- drone-server
- drone-runner
@ -22,8 +48,9 @@
merge_type: merge
resource_definition: "{{ lookup('template', item) | from_yaml }}"
with_items:
- drone/drone-PersistentVolumeClaim.yaml
- drone/drone-PersistentVolumeClaim.yml.j2
- drone/drone-Secret.yaml.j2
- drone/drone-IngressRoute.yml.j2
- name: Install Drone Static files
k8s:
state: present
@ -64,4 +91,4 @@
tags:
- drone-runner
tags:
- drone
- drone