Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3716111
D2882.id7347.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D2882.id7347.diff
View Options
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
@@ -17,6 +17,7 @@
- getsentry/snuba:nightly
- tianon/exim4
- yandex/clickhouse-server:20.3.9.70
+ - getsentry/symbolicator:nightly
docker_containers:
@@ -140,6 +141,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,58 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Notes: Environment follows getsentry/self-hosted
+# -------------------------------------------------------------
+
+{% set has_selinux = salt['grains.get']('selinux:enabled', False) %}
+
+{% for instance, container in pillar['docker_containers']['symbolicator'].items() %}
+
+# -------------------------------------------------------------
+# Data directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% for subdir in ['data', 'etc'] %}
+/srv/symbolicator/{{ instance }}/{{ subdir }}:
+ file.directory:
+ - makedirs: True
+ - user: 10021
+ - group: 10021
+{% endfor %}
+
+/srv/symbolicator/{{ instance }}/etc/config.yml:
+ file.managed:
+ - source: salt://roles/paas-docker/containers/files/symbolicator/config.yml
+ - user: 10021
+ - group: 10021
+
+{% 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: getsentry/symbolicator:nightly
+ - command: run -c /etc/symbolicator/config.yml
+ - volumes:
+ - /srv/symbolicator/{{ instance }}/data:/data
+ - /srv/symbolicator/{{ instance }}/etc:/etc/symbolicator:ro
+ - networks:
+ - {{ container["network"] }}
+
+{% endfor %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 12:35 (21 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2231845
Default Alt Text
D2882.id7347.diff (3 KB)
Attached To
Mode
D2882: Deploy Symbolicator container for Sentry
Attached
Detach File
Event Timeline
Log In to Comment