cookbook 'errbit-server', '= 1.2.0'
errbit-server (10) Versions 1.2.0 Follow0
Installs/Configures errbit-server
cookbook 'errbit-server', '= 1.2.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(Monit)
- Checkout Errbit from Github
Inspired by chef-errbit.
Requirements
This cookbook depends on these external cookbooks:
- git
- rbenv
- mongodb
- application
- unicorn
- monit_wrapper
- logrotate
- nodejs (to rake assets:precompile for errbit in production)
Tested with:
- Chef 12.4.1
- CentOS 6.7
- Ubuntu 14.10
- Vagrant 1.7.4
- VirtualBox 5.0.0r101573
- Errbit (master on Aug 23, 2015, revision: d533719)
- 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: d5337194fc2e75020e4a9558a3ae0a09921d9580, master HEAD on Aug 23, 2015) -
node['errbit']['environment']
- Environment variables for Errbit. See also next section. -
node['errbit']['shallow_clone']
- Enable shallow clone when git checkout errbit. Useful if you use master branch. (default: false) -
node['errbit']['use_monit']
- Enable unicorn service management with monit. (default: true)
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
# Berksfile
cookbook "errbit-server"
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.
Sample Vagrantfile is bundled. See also sample/README.md.
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
MIT License
Author: Kawahara Taisuke (kwhrtsk@gmail.com)
Contributors
Contributor: Justin Aiken (60tonangel@gmail.com)
Dependent cookbooks
git >= 0.0.0 |
rbenv >= 0.0.0 |
mongodb >= 0.0.0 |
application >= 0.0.0 |
unicorn >= 0.0.0 |
monit_wrapper >= 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.
1.2.0
- [JustinAiken] - Allow config of monit service name.
- [kwhrtsk] - Change deploy provider to
deploy_revision
fromtimestamped_deploy
1.1.0
- [kwhrtsk] - Default disable shallow clone.
- [kwhrtsk] - Use
monit_wrapper
instead ofservice_factory
for unicorn service management. - [kwhrtsk] - Change default revision to d533719 (master HEAD on Aug 23, 2015)
1.0.4
- [kwhrtsk] - Add license to README.
1.0.3
- [kwhrtsk] - Add sample Vagrantfile.
1.0.2
- [kwhrtsk] - Fix bootstrap bug.
1.0.1
- [kwhrtsk] - Remove workaround for https://github.com/fnichol/chef-rbenv
1.0.0
- [kwhrtsk] - Use rbenv community cookbook instead of https://github.com/fnichol/chef-rbenv
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
1.2.0 passed this metric
1.2.0 passed this metric