Page MenuHomeDevCentral

No OneTemporary

diff --git a/pillar/saas/phpbb.sls b/pillar/saas/phpbb.sls
new file mode 100644
index 0000000..b4ec53a
--- /dev/null
+++ b/pillar/saas/phpbb.sls
@@ -0,0 +1,14 @@
+# -------------------------------------------------------------
+# Salt — phpBB managed installations
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-27
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+phpbb_datastores:
+ # Staging installation
+ - phpbb.test.ook.space
+ # Forum hosted on Nasqueron
+ - forum.espace-win.org
+ - utopia.espace-win.org
diff --git a/pillar/top.sls b/pillar/top.sls
index a3867d8..60d3a37 100644
--- a/pillar/top.sls
+++ b/pillar/top.sls
@@ -1,28 +1,29 @@
# -------------------------------------------------------------
# Salt configuration for Nasqueron servers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2016-04-10
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
base:
'*':
- core.users
- core.groups
- certificates.certificates
- nodes.nodes
- nodes.forests
- hotfixes.roles
- webserver.sites
dwellers:
- paas.docker
equatower:
- paas.docker
+ - saas.phpbb
ysul:
- devserver.repos
- saas.mediawiki
- viperserv.bots
- viperserv.fantoir
- webserver.labs
- webserver.wwwroot51
diff --git a/roles/paas-docker/containers/phpbb.sls b/roles/paas-docker/containers/phpbb.sls
new file mode 100644
index 0000000..8def226
--- /dev/null
+++ b/roles/paas-docker/containers/phpbb.sls
@@ -0,0 +1,45 @@
+# -------------------------------------------------------------
+# 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) %}
+
+# -------------------------------------------------------------
+# Data directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/srv/phpbb/data:
+ file.directory:
+ - user: 431
+ - group: 433
+ - makedirs: True
+
+{% if has_selinux %}
+selinux_context_phpbb_datastores:
+ selinux.fcontext_policy_present:
+ - name: /srv/phpbb/data
+ - sel_type: svirt_sandbox_file_t
+
+selinux_context_phpbb_datastores_applied:
+ selinux.fcontext_policy_applied:
+ - name: /srv/phpbb/data
+{% endif %}
+
+{% for store in pillar['phpbb_datastores'] %}
+/srv/phpbb/data/{{ store }}:
+ file.directory:
+ - user: 431
+ - group: 433
+
+{% for subdir in ['cache', 'config', 'ext', 'files', 'images', 'store'] %}
+/srv/phpbb/data/{{ store }}/{{ subdir }}:
+ file.recurse:
+ - source: salt://software/phpbb/phpBB/{{ subdir }}
+ - user: 431
+ - group: 433
+{% endfor %}
+{% endfor %}

File Metadata

Mime Type
text/x-diff
Expires
Sun, Nov 24, 19:43 (3 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2256160
Default Alt Text
(3 KB)

Event Timeline