Page MenuHomeDevCentral

D1677.diff
No OneTemporary

D1677.diff

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,37 @@
+# -------------------------------------------------------------
+# 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']('zr getcredentials 47 username') %}
+{% set db_password = salt['cmd.run']('zr getcredentials 47') %}
+
+# -------------------------------------------------------------
+# Container
+#
+# Image: dereckson/cachet
+# Description: PHP application to offer server status
+# information
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+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

Mime Type
text/plain
Expires
Sat, Nov 23, 04:19 (18 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2256897
Default Alt Text
D1677.diff (2 KB)

Event Timeline