summaryrefslogtreecommitdiffstats
path: root/setup/projects/web/vars
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-29 05:07:11 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-29 05:07:11 +0200
commit963221b9cab88846db37ad5efa658eeb39aada35 (patch)
treef270f59fd7226d89f60ca8eecad1a2b79173e0e4 /setup/projects/web/vars
parenta2bf14be3f6b24b8f0ab5adf9428483eae60d8d6 (diff)
downloadands-963221b9cab88846db37ad5efa658eeb39aada35.tar.gz
ands-963221b9cab88846db37ad5efa658eeb39aada35.tar.bz2
ands-963221b9cab88846db37ad5efa658eeb39aada35.tar.xz
ands-963221b9cab88846db37ad5efa658eeb39aada35.zip
Trac hosting (old and new); WebDAV service for KATRIN
Diffstat (limited to 'setup/projects/web/vars')
-rw-r--r--setup/projects/web/vars/pods.yml38
-rw-r--r--setup/projects/web/vars/volumes.yml15
2 files changed, 53 insertions, 0 deletions
diff --git a/setup/projects/web/vars/pods.yml b/setup/projects/web/vars/pods.yml
new file mode 100644
index 0000000..a7797b8
--- /dev/null
+++ b/setup/projects/web/vars/pods.yml
@@ -0,0 +1,38 @@
+builders:
+ apache: { type: Source, image: "php:latest", src: "{{ ands_repos.docker }}/simplephp.git" }
+ trac0: { name: "trac", src: "{{ ands_repos.docker }}/trac.git", src_path: "0.10", version: "0.10" }
+ trac: { name: "trac", src: "{{ ands_repos.docker }}/trac.git", src_path: "latest", version: "latest" }
+
+pods:
+ web-kopmann:
+ service: { host: "web-kopmann.{{ openshift_master_default_subdomain }}", ports: [ 80/8080 ] }
+ sched: { replicas: 1 }
+ groups: [ "web_kopmann" ]
+ images:
+ - stream: "apache:latest"
+ mappings:
+ - { name: "web_data", path: "kopmann", mount: "/opt/app-root/src" }
+ probes:
+ - { port: 8080 }
+ trac-adei:
+ service: { host: "trac-adei.{{ openshift_master_default_subdomain }}", ports: [ 80/8080 ] }
+ sched: { replicas: 1 }
+ groups: [ "web_trac", "web_auth" ]
+ images:
+ - stream: "trac:0.10"
+ mappings:
+ - { name: "web_etc", path: "auth", mount: "/auth" }
+ - { name: "web_data", path: "trac/adei/", mount: "/trac/adei" }
+ probes:
+ - { port: 8080 }
+ trac-pdv:
+ service: { host: "trac-pdv.{{ openshift_master_default_subdomain }}", ports: [ 80/8080 ] }
+ sched: { replicas: 1 }
+ groups: [ "web_trac", "web_auth" ]
+ images:
+ - stream: "trac:latest"
+ mappings:
+ - { name: "web_etc", path: "auth", mount: "/auth" }
+ - { name: "web_data", path: "trac/pdv", mount: "/trac" }
+ probes:
+ - { port: 8080 }
diff --git a/setup/projects/web/vars/volumes.yml b/setup/projects/web/vars/volumes.yml
new file mode 100644
index 0000000..579e041
--- /dev/null
+++ b/setup/projects/web/vars/volumes.yml
@@ -0,0 +1,15 @@
+gids:
+ web: { id: 6201, users: [ 'csa', 'kopmann' ] }
+ web_kopmann: { id: 6202, users: [ 'kopmann' ] }
+ web_trac: { id: 6205, users: [ 'csa', 'kopmann' ] }
+ web_auth: { id: 6209 }
+
+
+volumes:
+ web_etc: { volume: "openshift", path: "", write: false }
+ web_data: { volume: "datastore", path: "/web", write: true }
+
+files:
+ - { osv: "web_etc", path: "auth", state: "directory", group: "web_auth", mode: "02770" }
+ - { osv: "web_data", path: "trac", state: "directory", group: "web_trac", mode: "02770" }
+ - { osv: "web_data", path: "kopmann", state: "directory", group: "web_kopmann", mode: "02770" }