Coder Social home page Coder Social logo

sentry-cookbook's Introduction

Description

Cookbook for setup and configure sentry application.

Requirements

python

Attributes

The sentry.conf.py file are dynamically generated from attributes.

All default values of attributes you can see in attributes/default.rb

Usage

To use the cookbook we recommend creating a cookbook named after the application, e.g. my_app. In metadata.rb you should declare a dependency on this cookbook:

depends "sentry"

Include recipe[sentry] to you runlist.

Replace you own node['sentry']['key'] random key.

For create new superusers you need overrider node['sentry']['superusers'] attribute:

"superusers" => [{
                 "username" => "alex",
                 "password" => "tmppassword",
                 "email" => "[email protected]"}]

We recommend change temporary passwords after from web interface.

To configure database override node['sentry']['databases']['default'] keys:

 "databases" => {
    "default" => {
      "NAME" => "/var/www/sentry/sentry.db"
    },
 }

Add "recipe[sentry::instance]" to you runlist.

Or make you own custom configuration via resouces and definitions.

Create sentry config

sentry_conf "sentry" do
    user "sentry"
    group "sentry"
    virtualenv node["sentry"]["virtualenv"]
    # Settings file variables hash
    settings {}
end

Create launch instance:

# Running sentry instance
sentry_instance "sentry" do
    virtualenv node["sentry"]["virtualenv"]
    user node["sentry"]["user"]
    group node["sentry"]["group"]
    pidfile "/var/run/sentry-1.pid"
    config node["sentry"]["config"]
end

Definitions

You can create config for sentry need use definition sentry_conf:

sentry_conf "sentry" do
    user "sentry"
    group "sentry"
    virtualenv node["sentry"]["virtualenv"]
    # Settings file variables hash
    settings {}
end

Attributes

  • name name or path to config file (if config attr not used)
  • template config template file name
  • user user that own application
  • group gtoup that own application
  • config path to config file
  • settings hash of config variables

Resources

sentry_instance

To run sentry instance you can user sentry_instance resouce

Attribute parameters

  • name instance name
  • group launch by group
  • user launch by user
  • virtualenv: path to virtualenv
  • config: path to config file
  • pidfile: path to instance pidfile
  • host: host for binding
  • port: port for binging
  • workers: number of workers
  • provider: instance porvider (default: Chef::Provider::SentryBase)

Providers

sentry cookbook support 3 instance providers:

  • Chef::Provider::SentryBase - simple provider, that create init.d script and spawn instance

  • Chef::Provider::SentryRunit - provider, that spawn instance via runit

  • Chef::Provider::SentrySupervisor - provider, that spawn instance via supervisord

Recipes

default

Base recipe to configure sentry user and group

instance

Recipe to install simple sentry instance.

See also

sentry-cookbook's People

Contributors

jesuejunior avatar lemuelf avatar lispython avatar modess avatar yogu avatar

Watchers

 avatar  avatar  avatar  avatar  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.