Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3944997
D2860.id7288.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
D2860.id7288.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
@@ -211,6 +211,11 @@
sentry_db:
credential: nasqueron.sentry.postgresql
+ memcached:
+ sentry_memcached:
+ version: 1.6.9-alpine
+ network: sentry
+
redis:
sentry_redis: {}
pixelfed_redis: {}
diff --git a/roles/paas-docker/containers/memcached.sls b/roles/paas-docker/containers/memcached.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/containers/memcached.sls
@@ -0,0 +1,33 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% set has_selinux = salt['grains.get']('selinux:enabled', False) %}
+{% set containers = pillar['docker_containers'][grains['id']] %}
+
+{% for instance, container in containers['memcached'].items() %}
+{% set image = salt['paas_docker.get_image']("memcached", container) %}
+
+# -------------------------------------------------------------
+# Container
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{{ instance }}:
+ docker_container.running:
+ - detach: True
+ - interactive: True
+ - image: {{ image }}
+ - healthcheck:
+ Test:
+ - CMD-SHELL
+ - echo stats | nc 127.0.0.1 11211
+ Interval: 30000000000
+{% if 'network' in container %}
+ - networks:
+ - {{ container['network'] }}
+{% endif %}
+
+{% endfor %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 03:11 (1 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2316090
Default Alt Text
D2860.id7288.diff (1 KB)
Attached To
Mode
D2860: Deploy memcached container for Sentry
Attached
Detach File
Event Timeline
Log In to Comment