diff options
Diffstat (limited to 'setup/projects/services/vars')
-rw-r--r-- | setup/projects/services/vars/apps.yml | 3 | ||||
-rw-r--r-- | setup/projects/services/vars/davmail.yml | 14 | ||||
-rw-r--r-- | setup/projects/services/vars/gogs.yml | 18 | ||||
-rw-r--r-- | setup/projects/services/vars/script.yml | 6 | ||||
-rw-r--r-- | setup/projects/services/vars/volumes.yml | 8 |
5 files changed, 49 insertions, 0 deletions
diff --git a/setup/projects/services/vars/apps.yml b/setup/projects/services/vars/apps.yml new file mode 100644 index 0000000..3532941 --- /dev/null +++ b/setup/projects/services/vars/apps.yml @@ -0,0 +1,3 @@ +apps: + davmail: { provision: true, instantiate: true } + gogs: { provision: true, instantiate: true } diff --git a/setup/projects/services/vars/davmail.yml b/setup/projects/services/vars/davmail.yml new file mode 100644 index 0000000..956f6e5 --- /dev/null +++ b/setup/projects/services/vars/davmail.yml @@ -0,0 +1,14 @@ +davmail: + builders: + davmail: { src: "{{ ands_repos.docker }}/davmail.git" } + + pods: + davmail: + service: { ports: [ 1389, 1025, 1143, 1110, 1080 ] } + sched: { replicas: 1 } + images: + - stream: "davmail:latest" + probes: + - { port: 1389 } + env: + - { name: "DAVMAIL_URL", value: "https://owa.kit.edu/owa/" } diff --git a/setup/projects/services/vars/gogs.yml b/setup/projects/services/vars/gogs.yml new file mode 100644 index 0000000..b135746 --- /dev/null +++ b/setup/projects/services/vars/gogs.yml @@ -0,0 +1,18 @@ +gogs: + builders: + gogs: { src: "{{ ands_repos.docker }}/gogs.git" } + + pods: + gogs: + service: { host: "gogs.{{ openshift_master_default_subdomain }}", ports: [ 80/3000 ] } + groups: [ "services_gogs" ] + sched: { replicas: 1 } + images: + - stream: "gogs:latest" + configs: + - { name: "gogs", mount: "/data/gogs/conf" } + mappings: + - { name: "data", path: "gogs", mount: "/data" } +# - { name: "tmp", path: "gogs", mount: "/data/gogs/log" } + probes: + - { port: 3000 } diff --git a/setup/projects/services/vars/script.yml b/setup/projects/services/vars/script.yml new file mode 100644 index 0000000..f5d9378 --- /dev/null +++ b/setup/projects/services/vars/script.yml @@ -0,0 +1,6 @@ +oc: + - storage: ".*" + - templates: "gogs*" + - apps: ".*" + - oc: "expose svc/davmail --type LoadBalancer --protocol TCP --generator service/v1 --name davmail-ingress" + resource: "svc/davmail-ingress" diff --git a/setup/projects/services/vars/volumes.yml b/setup/projects/services/vars/volumes.yml new file mode 100644 index 0000000..192f572 --- /dev/null +++ b/setup/projects/services/vars/volumes.yml @@ -0,0 +1,8 @@ +gids: + services: { id: 9000 } + services_gogs: { id: 9001, users: [ 'csa', 'kopmann' ] } + +files: + - { osv: "data", path: "gogs", state: "directory", group: "services_gogs", mode: "02770" } + - { osv: "data/gogs", path: "gogs", state: "directory", group: "services_gogs", mode: "02770" } + |