Page MenuHomeDevCentral

D2882.id7345.diff
No OneTemporary

D2882.id7345.diff

diff --git a/pillar/paas/docker/docker-002/sentry.sls b/pillar/paas/docker/docker-002/sentry.sls
--- a/pillar/paas/docker/docker-002/sentry.sls
+++ b/pillar/paas/docker/docker-002/sentry.sls
@@ -140,6 +140,14 @@
network: sentry
services: *sentry_snuba_services
+ #
+ # Symbolicator
+ #
+
+ symbolicator:
+ sentry_symbolicator:
+ network: sentry
+
#
# Sentry
#
diff --git a/roles/paas-docker/containers/files/symbolicator/config.yml b/roles/paas-docker/containers/files/symbolicator/config.yml
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/containers/files/symbolicator/config.yml
@@ -0,0 +1,27 @@
+# -------------------------------------------------------------
+# Symbolicator configuration for Sentry
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Reference: https://getsentry.github.io/symbolicator/#configuration
+# Source file: roles/paas-docker/containers/files/symbolicator/config.yml
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+cache_dir: "/data"
+
+bind: "0.0.0.0:3021"
+
+logging:
+ level: "warn"
+
+metrics:
+ statsd: null
+
+sentry_dsn: null
diff --git a/roles/paas-docker/containers/symbolicator.sls b/roles/paas-docker/containers/symbolicator.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/containers/symbolicator.sls
@@ -0,0 +1,53 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Notes: Environment follows getsentry/self-hosted
+# -------------------------------------------------------------
+
+{% for instance, container in pillar['docker_containers']['symbolicator'].items() %}
+
+# -------------------------------------------------------------
+# Data directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% for subdir in ['data', 'etc'] %}
+/srv/symbolicator/{{ instance }}/{{ subdir }}:
+ file.directory:
+ - makedirs: True
+{% endfor %}
+
+/srv/symbolicator/{{ instance }}/etc/config.yml:
+ file.managed:
+ - source: salt://roles/paas-docker/containers/files/symbolicator/config.yml
+
+{% if has_selinux %}
+selinux_context_{{ instance }}_symbolicator_data:
+ selinux.fcontext_policy_present:
+ - name: /srv/symbolicator/{{ instance }}
+ - sel_type: container_file_t
+
+selinux_context_{{ instance }}_symbolicator_data_applied:
+ selinux.fcontext_policy_applied:
+ - name: /srv/symbolicator/{{ instance }}
+{% endif %}
+
+# -------------------------------------------------------------
+# Container
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{{ instance }}:
+ docker_container.running:
+ - detach: True
+ - interactive: True
+ - image: ?
+ - command: run -c /etc/symbolicator/config.yml
+ - networks:
+ - {{ container["network"] }}
+ volumes:
+ - /srv/symbolicator/{{ instance }}/data:/data
+ - /srv/symbolicator/{{ instance }}/etc:/etc/symbolicator:ro
+ command: run -c /etc/symbolicator/config.yml
+
+{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 5, 23:27 (12 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2230928
Default Alt Text
D2882.id7345.diff (3 KB)

Event Timeline