cookbook 'errbit-server', '= 0.1.0'
errbit-server (10) Versions 0.1.0 Follow0
Installs/Configures errbit-server
cookbook 'errbit-server', '= 0.1.0', :supermarket
knife supermarket install errbit-server
knife supermarket download errbit-server
errbit-server Cookbook
Install and configures Errbit.
Feature:
- Ruby installation using rbenv and ruby_build
- MongoDB installation
- Unicorn service configuration(SysV or Upstart)
- Checkout Errbit from Github
Inspired by chef-errbit.
Requirements
This cookbook depends on these external cookbooks:
- git
- rbenv
- ruby_build
- mongodb
- application
- unicorn
- service_factory
- logrotate
- nodejs (to rake assets:precompile for errbit in production)
Tested with:
- Chef 11.18.6
- CentOS 6.6
- Ubuntu 14.10
- Vagrant 1.7.2
- VirtualBox 4.3.26
- Errbit (master on Apr 10, 2015)
- Ruby 2.2.2
Attributes
-
node['errbit']['user']
- system user for running Errbit Unicorn (default: errbit) -
node['errbit']['group']
- system group for running Errbit Unicorn (default: errbit) -
node['errbit']['ruby_version']
- MRI version to install using rbenv (default: 2.2.2) -
node['errbit']['port']
- Listening port of Errbit service (default: 3000) -
node['errbit']['revision']
- Errbit revision/refs to deploy (default: master) -
node['errbit']['environment']
- Environment variables for Errbit. See also next section.
node['errbit']['environment']
Override environments in errbit/.envrc
Please refer to Errbit documantation.
https://github.com/errbit/errbit/blob/master/docs/configuration.md
Default values in this recipe is changed only the following:
ERRBIT_EMAIL_AT_NOTICES
Errbit notifies watchers via email after the set number of occurances of the same error.
This env was changed to [0]
in this recipe, this value means never send emails.
Original default is [1, 10, 100]
ERRBIT_NOTIFY_AT_NOTICES
Notify each application's configured notification service after the set number of occurances
of the same error. [0] means notify on every occurance.
This env was changed to [1, 10, 100]
in this recipe.
Original default is [0]
Usage
include_recipe "errbit-server::default"
After first deployment, initial admin user's password will be wrote out to /opt/errbit/bootstrap.out
.
$ cat /opt/errbit/bootstrap.out
Seeding database
-------------------------------
Creating an initial admin user:
-- email: errbit@errbit.example.com
-- password: 3o0c6L_jf-mh
Be sure to note down these credentials now!
Visit to http://yourhostname.example.com:3000/
and login!
When you use Errbit in production env,
it is strongly recommended that deploy errbit service with the reverse proxy like nginx or ELB
in order to encrypt the connection.
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Author: Kawahara Taisuke (kwhrtsk@gmail.com)
Dependent cookbooks
git >= 0.0.0 |
rbenv >= 0.0.0 |
ruby_build >= 0.0.0 |
mongodb >= 0.0.0 |
application >= 0.0.0 |
unicorn >= 0.0.0 |
service_factory >= 0.0.0 |
nodejs >= 0.0.0 |
logrotate >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
errbit-server CHANGELOG
This file is used to list changes made in each version of the errbit-server cookbook.
0.1.0
- [kwhrtsk] - Initial release of errbit-server
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Foodcritic Metric
0.1.0 failed this metric
FC046: Attribute assignment uses assign unless nil: /tmp/cook/4724e0d537b5786984d37646/errbit-server/attributes/default.rb:44
0.1.0 failed this metric