Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3717082
D1677.id4273.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D1677.id4273.diff
View Options
diff --git a/PORTS b/PORTS
--- a/PORTS
+++ b/PORTS
@@ -4,4 +4,5 @@
31080 Phabricator HTTP - DevCentral
34080 Etherpad
38080 Jenkins HTTP - CD
+ 39080 Cachet HTTP
50000 Jenkins master's port for JNLP-based Jenkins agents - CD
diff --git a/pillar/paas/docker.sls b/pillar/paas/docker.sls
--- a/pillar/paas/docker.sls
+++ b/pillar/paas/docker.sls
@@ -57,6 +57,10 @@
phabricator:
devcentral: {}
aphlict: {}
+ cachet:
+ app_port: 39080
+ host: status.nasqueron.org
+ mysql_link: acquisitariat
etherpad:
app_port: 34080
mysql_link: acquisitariat
diff --git a/roles/paas-docker/containers/cachet.sls b/roles/paas-docker/containers/cachet.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/containers/cachet.sls
@@ -0,0 +1,38 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2016-12-15
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% set containers = pillar['docker_containers'][grains['id']] %}
+{% set container = containers['cachet'] %}
+
+{% set db_username = salt['cmd.run']('ssh -4 -i /etc/zr/id_zr zr@ysul.nasqueron.org getcredentials 47 username') %}
+{% set db_password = salt['cmd.run']('ssh -4 -i /etc/zr/id_zr zr@ysul.nasqueron.org getcredentials 47') %}
+
+# -------------------------------------------------------------
+# Container
+#
+# Image: dereckson/cachet
+# Description: PHP application to offer server status
+# information
+# TODO: Move credentials from Zemke-Rhyne to Vault
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+cachet:
+ docker_container.running:
+ - detach: True
+ - interactive: True
+ - image: dereckson/cachet
+ - links: {{ container['mysql_link'] }}:mysql
+ - environment:
+ - DB_HOST: mysql
+ - DB_DATABASE: cachet
+ - DB_USERNAME: {{ db_username }}
+ - DB_PASSWORD: {{ db_password }}
+ - ports:
+ - 80
+ - port_bindings:
+ - {{ container['app_port'] }}:80
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 00:11 (21 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2231999
Default Alt Text
D1677.id4273.diff (2 KB)
Attached To
Mode
D1677: Migrate cachet to Equatower
Attached
Detach File
Event Timeline
Log In to Comment