summaryrefslogtreecommitdiffstats
path: root/setup/projects/kaas/vars
diff options
context:
space:
mode:
Diffstat (limited to 'setup/projects/kaas/vars')
-rw-r--r--setup/projects/kaas/vars/globals.yml1
-rw-r--r--setup/projects/kaas/vars/pods.yml15
-rw-r--r--setup/projects/kaas/vars/volumes.yml10
3 files changed, 26 insertions, 0 deletions
diff --git a/setup/projects/kaas/vars/globals.yml b/setup/projects/kaas/vars/globals.yml
new file mode 100644
index 0000000..69b0bfe
--- /dev/null
+++ b/setup/projects/kaas/vars/globals.yml
@@ -0,0 +1 @@
+katrin_node: "katrin.{{ openshift_master_default_subdomain }}"
diff --git a/setup/projects/kaas/vars/pods.yml b/setup/projects/kaas/vars/pods.yml
new file mode 100644
index 0000000..41831ab
--- /dev/null
+++ b/setup/projects/kaas/vars/pods.yml
@@ -0,0 +1,15 @@
+pods:
+ kaas-router:
+ service: { host: "{{ katrin_node }}", ports: [ 80/8080, 443/8043 ] }
+ sched: { replicas: 1, selector: { master: 1 } }
+ selector: { master: 1 }
+ images:
+ - image: "httpd:2.2"
+ mappings:
+ - { name: "etc", path: "apache2", mount: "/usr/local/apache2/conf" }
+ - { name: "data", path: "www", mount: "/usr/local/apache2/htdocs" }
+ - { name: "tmp", path: "apache2", mount: "/usr/local/apache2/logs" }
+ probes:
+ - { port: 8080, path: '/index.html' }
+
+ \ No newline at end of file
diff --git a/setup/projects/kaas/vars/volumes.yml b/setup/projects/kaas/vars/volumes.yml
new file mode 100644
index 0000000..3554aa6
--- /dev/null
+++ b/setup/projects/kaas/vars/volumes.yml
@@ -0,0 +1,10 @@
+gids:
+ kaas: { id: 4000 }
+
+files:
+ - { osv: "data", path: "/www", state: "directory", group: "kaas", mode: "0775" }
+ - { osv: "etc", path: "/apache2", state: "directory", group: "kaas", mode: "0775" }
+ - { osv: "tmp", path: "/apache2", state: "directory", group: "kaas", mode: "0775" }
+
+#resync: true
+sync_set_gid: kaas