Giter Site home page Giter Site logo

stouts.sentry's Introduction

Stouts.sentry

Build Status Galaxy

Ansible role which install and setup Sentry

Requirements

Recomended

Variables

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: no                                            # Enable SSL
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

Usage

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"

License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, ...

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

stouts.sentry's People

Contributors

klen avatar miohtama avatar egorchakov avatar lepture avatar gplz avatar javaguirre avatar mn7z avatar

Watchers

James Cloos avatar Yu Jin Lim avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.