jmcvetta.sentry
jmcvetta.sentry
This is an Ansible role for deploying Sentry.
Requirements
You need to have Ubuntu 14.04 LTS.
You also need Redis and PostgreSQL set up, but this role does not install them. For Redis, you can use jpnewman.redis
. For PostgreSQL, you can install it using APT on your local machine, or if you are using AWS, consider using RDS.
Role Variables
Cryptographic Keys
You must set several cryptographic key variables with long, unique strings. Do not use the same keys again, as this is a security risk.
# Generate your own keys!
sentry_secret_key: ahrujiepheeTh6aex1jiyaejuxageyei
sentry_client_public_key: VaiQueughaisha5phael1eet
sentry_client_secret_key: faiphedev4ievei9haiMie5oW8eek6az
You can use the pwgen
tool to create strong random strings:
# Install pwgen
sudo apt-get install pwgen
# Generate one random string of 32 characters
pwgen -1 32
Other Variables
There are default values for all variables:
# Sentry will run as this user
sentry_user: sentry
# Database settings
sentry_db_engine: sentry.db.postgres
sentry_db_name: sentry
sentry_db_user: sentry
sentry_db_password:
sentry_db_host:
sentry_db_port:
# Email Settings
sentry_mail_backend: 'smtp' # Use 'dummy' to disable email
sentry_mail_host: 'localhost'
sentry_mail_port: 25
sentry_mail_username: ''
sentry_mail_password: ''
sentry_mail_use_tls: false
# From email address
sentry_mail_from: 'root@localhost'
# Redis settings
sentry_redis_host: 127.0.0.1
sentry_redis_port: 6379
# Web settings
sentry_web_host: '0.0.0.0'
sentry_port: 9000
# Bootstrap settings
sentry_org_name: Sentry
sentry_team_name: Sentry
sentry_project_name: "My Project"
Dependencies
Installation
To install, run:
ansible-galaxy install jmcvetta.sentry
Example Playbook
Here’s an example of how to use this role with variables passed as parameters:
- hosts: monitor
roles:
- jmcvetta.sentry
License
This software is free and released under the MIT license. See the file LICENSE
for more details. Keep ownership of ideas – it’s important for your freedom.
Author Information
For paid support and consulting, you can contact Silicon Heavy.
ansible-galaxy install jmcvetta.sentry