Skip to content

Commit

Permalink
Move yml deployment and service files for tldraw to separate role folder
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejpass committed Oct 16, 2023
1 parent 6a90db1 commit 3dd1f08
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
12 changes: 0 additions & 12 deletions ansible/roles/schulcloud-server-core/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,3 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: amqp-files-deployment.yml.j2

- name: TlDrawServerDeployment
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: tldraw-deployment.yml.j2

- name: TlDrawWsService
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: tldraw-svc.yml.j2
9 changes: 9 additions & 0 deletions ansible/roles/schulcloud-server-tldraw/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
galaxy_info:
role_name: schulcloud-server-tldraw
author: Schul-Cloud Verbund
description: tldraw role for the schulcloud-server
company: Schul-Cloud Verbund
license: license (AGPLv3)
min_ansible_version: 2.8
galaxy_tags: []
dependencies: []
11 changes: 11 additions & 0 deletions ansible/roles/schulcloud-server-tldraw/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- name: TlDrawServerDeployment
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: api-tldraw-deployment.yml.j2

- name: TlDrawWsService
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: api-tldraw-svc.yml.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: tldraw-deployment
name: api-tldraw-deployment
namespace: {{ NAMESPACE }}
labels:
app: tldraw
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: tldraw-svc
name: api-tldraw-svc
namespace: {{ NAMESPACE }}
labels:
app: tldraw
Expand Down

0 comments on commit 3dd1f08

Please sign in to comment.