Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3774427
D2859.id7290.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
D2859.id7290.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
Mon, Nov 25, 11:37 (21 h, 9 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262333
Default Alt Text
D2859.id7290.diff (1 KB)
Attached To
Mode
D2859: Deploy memcached container for Sentry
Attached
Detach File
Event Timeline
Log In to Comment