Ansible role which install and setup Sentry
The role variables and default values.
sentry_enabled: yes # Enable the role
sentry_remove: no # Uninstall the role
sentry_version: 7.4.3
sentry_home: /usr/lib/sentry # Deploy sentry to the folder
sentry_user: sentry # Run as user
sentry_hostname: "{{inventory_hostname}}"
sentry_port: 80
sentry_secret_key: 1LsmGR1DIyCJ5n2bRG5IVOFHdzEPkTKlW0RzxZVe9S0vc
sentry_extensions: [] # List of sentry-extensions
# Python configuration
sentry_python: python2.7 # In the case of multiple Python installations
# Pick one for Sentry using specific virtualenv command
sentry_ssl_redirect: no # 80 -> 443
sentry_ssl_certificate: # SSL certificate file - also turns on HTTPS on Nginx
sentry_ssl_certificate_key: # Key file for SSL cert
# Initial data
sentry_admin_username: admin # Creates admin user with credentials, set blank for skip
sentry_admin_email: admin@{{sentry_hostname}}
sentry_admin_password: admin
sentry_teams: [sentry] # Creates teams for admin user, set blank for skip
sentry_projects: # Creates project for admin user, set blank for skip
- name: sentry
platform: python
team: sentry
sentry_config_additional: [] # List of additional options
# Setup gunicorn
sentry_web_host: 127.0.0.1
sentry_web_port: 9000
sentry_web_options: { workers: 3, limit_request_line: 0, secure_scheme_headers: {'X-FORWARDED-PROTO': 'https'} }
# Setup databases
sentry_db_engine: django.db.backends.sqlite3
sentry_db_name: "{{sentry_home}}/sentry.sqlite"
sentry_db_user: postgres
sentry_db_password: ""
sentry_db_host: ""
sentry_db_port: ""
sentry_db_options: {}
# Setup cache
sentry_cache_backend: "redis_cache.RedisCache"
sentry_cache_location: "{{redis_bind}}:{{redis_port}}"
# Queue settings
sentry_broker_url: "redis://{{redis_bind}}:{{redis_port}}"
# Buffer settings
sentry_buffer: "sentry.buffer.redis.RedisBuffer"
sentry_redis_host: "{{redis_bind}}"
sentry_redis_port: "{{redis_port}}"
# Social auth settings
sentry_twitter_consumer_key: ""
sentry_twitter_consumer_secret: ""
sentry_facebook_app_id: ""
sentry_facebook_api_secret: ""
sentry_google_oauth2_client_id: ""
sentry_google_oauth2_client_secret: ""
sentry_github_app_id: ""
sentry_github_api_secret: ""
sentry_trello_api_key: ""
sentry_trello_api_secret: ""
sentry_bitbucket_consumer_key: ""
sentry_bitbucket_consumer_secret: ""
# Email settings
sentry_server_email: 'sentry@{{sentry_hostname}}' # From email
sentry_email_settings: [] # Ex. sentry_email_settings:
# - EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
# - EMAIL_HOST = 'localhost'
# - EMAIL_HOST_PASSWORD = ''
# - EMAIL_HOST_USER = ''
# - EMAIL_PORT = 25
# - EMAIL_USE_TLS = False
# Logging
sentry_access_log: /var/log/sentry-access.log
sentry_error_log: /var/log/sentry-error.log
sentry_nginx_timeout: 15s
# The following parameters are for toggling dependencies
redis_enabled: yes
nginx_enabled: yes
python_enabled: yes
Add Stouts.sentry
to your roles and set vars in your playbook file.
Example:
- hosts: all
sudo: true
roles:
- Stouts.foundation
- Stouts.python
- Stouts.postfix
- Stouts.sentry
vars:
postfix_smtp_sasl_user: "[email protected]"
postfix_smtp_sasl_password: "password"
Licensed under the MIT License. See the LICENSE file for details.
Are welcome!
If you wish to express your appreciation for the role, you are welcome to send a postcard to:
Kirill Klenov
pos. Severny 8-3
MO, Istra, 143500
Russia