Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3778233
D1517.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1517.diff
View Options
diff --git a/pillar/paas/docker.sls b/pillar/paas/docker.sls
--- a/pillar/paas/docker.sls
+++ b/pillar/paas/docker.sls
@@ -27,6 +27,8 @@
# Continuous deployment jobs
- jenkinsci/jenkins
- nasqueron/jenkins-slave-php
+ # phpBB SaaS
+ - nasqueron/mysql
docker_containers:
equatower:
@@ -39,3 +41,5 @@
ip: 172.17.0.100
elapsi:
ip: 172.17.0.101
+ # phpBB SaaS
+ phpbb_db: {}
diff --git a/roles/paas-docker/containers/phpbb_db.sls b/roles/paas-docker/containers/phpbb_db.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/containers/phpbb_db.sls
@@ -0,0 +1,43 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-27
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% set has_selinux = salt['grains.get']('selinux:enabled', False) %}
+
+# -------------------------------------------------------------
+# Home directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/srv/phpbb/mysql:
+ file.directory:
+ - user: 999
+ - group: 999
+ - makedirs: True
+
+{% if has_selinux %}
+selinux_context_phpbb_mysql_data:
+ selinux.fcontext_policy_present:
+ - name: /srv/phpbb/mysql
+ - sel_type: svirt_sandbox_file_t
+
+selinux_context_phpbb_mysql_data_applied:
+ selinux.fcontext_policy_applied:
+ - name: /srv/phpbb/mysql
+{% endif %}
+
+# -------------------------------------------------------------
+# Container
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+phpbb_db:
+ docker_container.running:
+ - detach: True
+ - interactive: True
+ - image: nasqueron/mysql
+ - binds: /srv/phpbb/mysql:/var/lib/mysql
+ - environment:
+ MYSQL_ROOT_PASSWORD: {{ salt['random.get_str'](31) }}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 04:20 (11 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263930
Default Alt Text
D1517.diff (1 KB)
Attached To
Mode
D1517: Deploy MySQL container for phpBB SaaS on Equatower
Attached
Detach File
Event Timeline
Log In to Comment