Skip to content

unicolet/salt-sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Salt states for Sentry

In this repo you will find a set of SaltStack states that will get Sentry running on a Centos 6 box.

Installing on Centos 6

As root, clone this repo:

  cd /root
  git clone https://github.com/unicolet/salt-sentry.git
  cd salt-sentry
  git checkout -b local
  yum -y install salt-minion
  ln -s /root/salt-sentry/salt/states/salt /srv/salt
  ln -s /root/salt-sentry/salt/states/pillar /srv/pillar

Edit /etc/salt/minion and enable masterless mode by setting:

 file_client: local

Adjust salt/states/pillar/sentry-server.sls to your environment

Run:

 salt-call state.highstate

Getting started with Vagrant (obsolete)

Clone this repo or a fork and then run:

  vagrant box add centos6 https://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box
  # install the plugin only if you don't have it already
  vagrant plugin install vagrant-salt
  vagrant up

When it's done browse to http://localhost:8080

Warning

Event if it works it does not mean that a Sentry server configured this way is ready for production. In particular the following issues should be addressed before putting in production:

  1. Sentry is running as root (Fixed in 15d2d49)
  2. There is no a little caching layer, performance could be subpar depending on the expected traffic (Partly fixed in 9db87cc by enabling memcached by default)
  3. By default all hosts are allowed, you should change that
  4. Change the secret key too
  5. Read carefully the Sentry documentation
  6. Nginx hardening
  7. SSL
  8. Backups

Disclaimer

As usual, this comes without any kind of warranty. Use the source and your own judgement.

License

You are free to do what you want with this, but you should know that the world will end up being a better place if you share your improvements/bug fixes.

About

Salt states for installing a functional Sentry server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published