Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3791844
D1647.id4201.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
D1647.id4201.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
@@ -41,5 +41,9 @@
ip: 172.17.0.100
elapsi:
ip: 172.17.0.101
+
# phpBB SaaS
phpbb_db: {}
+
+ # Openfire
+ openfire: {}
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,49 @@
+# -------------------------------------------------------------
+# 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) %}
+
+# -------------------------------------------------------------
+# 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: sameersbn/openfire
+ - binds: /srv/openfire:/var/lib/openfire
+ - ports:
+ - 5222
+ - 7777
+ - 9090
+ - port_bindings:
+ - 5222:5222
+ - 7777:7777
+ - 9090:9090
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 14:06 (8 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2269068
Default Alt Text
D1647.id4201.diff (1 KB)
Attached To
Mode
D1647: Provision Openfire XMPP server
Attached
Detach File
Event Timeline
Log In to Comment