Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

errbit-server (10) Versions 1.2.1

Installs/Configures errbit-server

Policyfile
Berkshelf
Knife
cookbook 'errbit-server', '~> 1.2.1', :supermarket
cookbook 'errbit-server', '~> 1.2.1'
knife supermarket install errbit-server
knife supermarket download errbit-server
README
Dependencies
Changelog
Quality 17%

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

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

MIT License

Author: Kawahara Taisuke (kwhrtsk@gmail.com)

Contributors

Contributor: JustinAiken

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

  • [kwhrtsk] - Update contributors

1.2.0

  • [JustinAiken] - Allow config of monit service name.
  • [kwhrtsk] - Change deploy provider to deploy_revision from timestamped_deploy

1.1.0

  • [kwhrtsk] - Default disable shallow clone.
  • [kwhrtsk] - Use monit_wrapper instead of service_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

1.0.0

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.

Collaborator Number Metric
            

1.2.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.2.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

1.2.1 failed this metric

FC064: Ensure issues_url is set in metadata: errbit-server/metadata.rb:1
FC065: Ensure source_url is set in metadata: errbit-server/metadata.rb:1
FC066: Ensure chef_version is set in metadata: errbit-server/metadata.rb:1
FC069: Ensure standardized license defined in metadata: errbit-server/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

1.2.1 passed this metric

Testing File Metric
            

1.2.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.2.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number