cookbook 'chef-unicorn', '~> 0.1.5'
chef-unicorn (6) Versions 0.1.5 Follow1
Installs and configure Unicorn server.
cookbook 'chef-unicorn', '~> 0.1.5', :supermarket
knife supermarket install chef-unicorn
knife supermarket download chef-unicorn
Unicorn
Installs and configure Unicorn server.
Requirements
Platforms
- Ubuntu 15.04+ (since we use Systemd)
Config
Attribute | Default |
---|---|
default['chef-unicorn']['config']['backlog'] | 64 |
default['chef-unicorn']['config']['check_client_connection'] | false |
default['chef-unicorn']['config']['listen'] | nil |
default['chef-unicorn']['config']['pid'] | nil |
default['chef-unicorn']['config']['preload_app'] | true |
default['chef-unicorn']['config']['stderr_path'] | nil |
default['chef-unicorn']['config']['stdout_path'] | nil |
default['chef-unicorn']['config']['timeout'] | 60 |
default['chef-unicorn']['config']['worker_processes'] | 4 |
default['chef-unicorn']['config']['working_directory'] | nil |
Service
|-------------------------------------------------------|---------------------|
|Attribute |Default |
|default['chef-unicorn']['config']['after_fork'] |... |
|default['chef-unicorn']['config']['before_fork'] |... |
|default['chef-unicorn']['service']['bundle_gemfile'] |nil |
|default['chef-unicorn']['service']['bundle'] |'/usr/bin/bundle' |
|default['chef-unicorn']['service']['config'] |nil |
|default['chef-unicorn']['service']['environment'] |'production' |
|default['chef-unicorn']['service']['gem_home'] |'/usr/local/ruby/gem'|
|default['chef-unicorn']['service']['locale'] |'en_US.UTF-8' |
|default['chef-unicorn']['service']['name'] |'unicorn' |
|default['chef-unicorn']['service']['pidfile'] |nil |
|default['chef-unicorn']['service']['user'] |'deploy' |
|default['chef-unicorn']['service']['working_directory']|'/' |
Usage
Berkfile
source 'https://supermarket.chef.io' cookbook 'chef-unicorn'
Node
The following nodes is an example of the minimal needed to run correctly this cookbook:
{ "chef-unicorn": { "config": { "config_file": "/var/www/app/shared/config/unicorn.rb", "listen": "/var/www/app/shared/run/unicorn/unicorn.sock", "pid": "/var/www/app/shared/run/unicorn/unicorn.pid", "stderr_path": "/var/www/app/shared/log/unicorn/error.log", "stdout_path": "/var/www/app/shared/log/unicorn/out.log", "working_directory": "/var/www/app/current" }, "service": { "bundle_gemfile": "/var/www/app/current/Gemfile", "config": "/var/www/app/shared/config/unicorn.rb", "pidfile": "/var/www/app/shared/run/unicorn/unicorn.pid" } }, "run_list": [ "recipe[chef-unicorn]" ] }
Unicorn documentation
References
https://github.com/defunkt/unicorn/blob/master/examples/unicorn.conf.rb
Love it!
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
v0.1.5
- Remove unused
service_name
variable from template; - Renames
chdir
to the original nameworking_directory
.
v0.1.4
Updates
- Updates README with instructions.
v0.1.3
Updates
- Fix Testing File Metric on Supermarket;
- Adds tag for Version Tag Metric on Supermarket.
v0.1.2
Fixes
- Fix cookbook name.
v0.1.1
Updates
- Fix some Supermarket lint metrics.
v0.1.0
- First release.
Collaborator Number Metric
0.1.5 passed this metric
Contributing File Metric
0.1.5 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
0.1.5 passed this metric
No Binaries Metric
0.1.5 passed this metric
Testing File Metric
0.1.5 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
0.1.5 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
0.1.5 passed this metric
0.1.5 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
0.1.5 passed this metric
No Binaries Metric
0.1.5 passed this metric
Testing File Metric
0.1.5 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
0.1.5 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
0.1.5 passed this metric
0.1.5 passed this metric
Testing File Metric
0.1.5 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
0.1.5 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
0.1.5 failed this metric
0.1.5 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