summaryrefslogtreecommitdiffstats
path: root/setup/projects/web
diff options
context:
space:
mode:
Diffstat (limited to 'setup/projects/web')
-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" }