WIP on drone server
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2020-06-22 00:07:57 +02:00
parent 02b21ec078
commit 9bf8b4e004
8 changed files with 584 additions and 425 deletions

View file

@ -9,26 +9,44 @@
with_items:
- drone-Namespace.yaml.j2
tags:
- drone
# - drone
- drone-server
- drone-runner
- name: Drone Server install
k8s:
state: present
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('file', item) | from_yaml }}"
with_items:
- drone/drone-Role.yaml
- drone/drone-RoleBinding.yaml
- drone/drone-ConfigMap.yaml
- drone/drone.yaml
block:
- name: Install Drone dynamic files
k8s:
state: present
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('template', item) | from_yaml }}"
with_items:
- drone/drone-PersistentVolumeClaim.yaml
- drone/drone-Secret.yaml.j2
- name: Install Drone Static files
k8s:
state: present
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('file', item) | from_yaml }}"
with_items:
- drone/drone-ConfigMap.yaml
- drone/drone-Deployment.yaml
- drone/drone-Service.yaml
tags:
- drone-server
- name: Drone Runner install
block:
- name: Install Drone Runner dynamic files
k8s:
state: present
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('template', item) | from_yaml }}"
with_items:
- drone-runner/drone-runner-Secret.yaml.j2
- name: Install Drone Runner static files
k8s:
state: present
@ -43,14 +61,6 @@
- drone-runner/drone-runner-ConfigMap.yaml
- drone-runner/drone-runner-Service.yaml
- drone-runner/drone-runner.yaml
- name: Install Drone Runner static files
k8s:
state: present
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('template', item) | from_yaml }}"
with_items:
- drone-runner/drone-runner-Secret.yaml.j2
tags:
- drone-runner
tags: