Page MenuHomeDevCentral

D1647.id4205.diff
No OneTemporary

D1647.id4205.diff

diff --git a/pillar/paas/docker.sls b/pillar/paas/docker.sls
--- a/pillar/paas/docker.sls
+++ b/pillar/paas/docker.sls
@@ -41,5 +41,10 @@
ip: 172.17.0.100
elapsi:
ip: 172.17.0.101
+
# phpBB SaaS
phpbb_db: {}
+
+ # Openfire
+ openfire:
+ host: xmpp.nasqueron.org
diff --git a/roles/paas-docker/containers/openfire.sls b/roles/paas-docker/containers/openfire.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/containers/openfire.sls
@@ -0,0 +1,61 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-06-18
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% set has_selinux = salt['grains.get']('selinux:enabled', False) %}
+{% set containers = pillar['docker_containers'][grains['id']] %}
+
+# -------------------------------------------------------------
+# Storage directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/srv/openfire:
+ file.directory:
+ - user: 999
+ - group: 999
+ - makedirs: True
+
+{% if has_selinux %}
+selinux_context_openfire_data:
+ selinux.fcontext_policy_present:
+ - name: /srv/openfire
+ - sel_type: svirt_sandbox_file_t
+
+selinux_context_openfire_data_applied:
+ selinux.fcontext_policy_applied:
+ - name: /srv/openfire
+{% endif %}
+
+# -------------------------------------------------------------
+# Container
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+openfire:
+ docker_container.running:
+ - detach: True
+ - interactive: True
+ - image: gizmotronic/openfire
+ - binds: /srv/openfire:/var/lib/openfire
+ - hostname: containers['openfire']['host']
+ - ports:
+ - 3478
+ - 5222
+ - 5269
+ - 7070
+ - 7443
+ - 7777
+ - 9090
+ - 9091
+ - port_bindings:
+ - 3478:3478
+ - 5222:5222
+ - 5269:5269
+ - 7070:7070
+ - 7443:7443
+ - 7777:7777
+ - 9090:9090
+ - 9091:9091

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 12:58 (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262522
Default Alt Text
D1647.id4205.diff (2 KB)

Event Timeline