summaryrefslogtreecommitdiffstats
path: root/setup/projects/kaas/vars
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-02-28 23:46:55 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-02-28 23:46:55 +0100
commit1f3e2a9f59e83dc3f0fcbecf096a7e7b40d36ed7 (patch)
treec75d04456ab3593442734bec3d84c90e4b973f27 /setup/projects/kaas/vars
parentfe4622305efa55e6bec8221efe8fc4bdd5462136 (diff)
downloadands-1f3e2a9f59e83dc3f0fcbecf096a7e7b40d36ed7.tar.gz
ands-1f3e2a9f59e83dc3f0fcbecf096a7e7b40d36ed7.tar.bz2
ands-1f3e2a9f59e83dc3f0fcbecf096a7e7b40d36ed7.tar.xz
ands-1f3e2a9f59e83dc3f0fcbecf096a7e7b40d36ed7.zip
First running prototype
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