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

supervisor (10) Versions 0.4.12

Installs supervisor and provides resources to configure services

Policyfile
Berkshelf
Knife
cookbook 'supervisor', '~> 0.4.12', :supermarket
cookbook 'supervisor', '~> 0.4.12'
knife supermarket install supervisor
knife supermarket download supervisor
README
Dependencies
Changelog
Quality 17%

supervisor Cookbook

Installs (Python) supervisor and provides resources to configure services

Requirements

Platforms

Supports Debian and RHEL based systems. Tested on Ubuntu 12.04, 10.04, CentOS 6.5.

Cookbooks

  • python

Attributes

  • node['supervisor']['inet_port'] - The port on which you want to serve the internal web-based admin dashboard, e.g. 'localhost:9001'
  • node['supervisor']['inet_username'] - The username for authentication to this HTTP server
  • node['supervisor']['inet_password'] - The password for authentication to this HTTP server (supports both cleartext and SHA-1 hashed passwords prefixed by {SHA})
  • node['supervisor']['dir'] - location of supervisor config files
  • node['supervisor']['log_dir'] - location of supervisor logs
  • node['supervisor']['logfile_maxbytes'] - max bytes for the supervisord logfile before it is rotated rotated, default '50MB'
  • node['supervisor']['logfile_backups'] - the number of backups of that logfile to keep, default 10
  • node['supervisor']['loglevel'] - the minimum severity for those log messages, default 'info'
  • node['supervisor']['minfds'] - The minimum number of file descriptors that must be available before supervisord will start successfully.
  • node['supervisor']['minprocs'] - The minimum number of process descriptors that must be available before supervisord will start successfully.
  • node['supervisor']['version'] - Sets the version of supervisor to install, must be 3.0+ to use minprocs and minfds.
  • node['supervisor']['socket_file'] - location of supervisor socket file.

Resources/Providers

supervisor_service

Actions

The default action is the array [:enable, :start]. Actions use the supervisorctl program.

  • :enable - enables the service at boot time
  • :disable - disables the service at boot time
  • :start - starts the service
  • :stop - stops the service
  • :restart - restarts the service
  • :reload - reloads the service

Attribute Parameters

  • :service_name - (Name Attribute), a string, name of the service

The following attributes are used in the program.conf.erb as the values for the corresponding configuration option. See the supervisor documentation for more information about each setting, including applicable defaults.

  • :command - string
  • :process_name - string
  • :numprocs - integer
  • :numprocs_start - integer
  • :priority - integer
  • :autostart - true or false
  • :autorestart - string, symbol, true or false
  • :startsecs - integer
  • :startretries - integer
  • :exitcodes - array
  • :stopsignal - string or symbol
  • :stopwaitsecs - integer
  • :user - string or nil
  • :redirect_stderr - true or false
  • :stdout_logfile - string
  • :stdout_logfile_maxbytes - string
  • :stdout_logfile_backups - string
  • :stdout_capture_maxbytes - string
  • :stdout_events_enabled - true or false
  • :stderr_logfile - string
  • :stderr_logfile_maxbytes - string
  • :stderr_logfile_backups - integer
  • :stderr_capture_maxbytes - string
  • :stderr_events_enabled - true or false
  • :environment- hash
  • :directory- string or nil
  • :umask - string or nil
  • :serverurl - string

Examples

supervisor_service "celery" do
  action :enable
  autostart false
  user "nobody"
end

Recipes

default

Includes the python recipe, installs the supervisor PIP package and sets up supervisor.

License & Authors

Copyright:: 2011-2012, Opscode, Inc <legal@opscode.com>
Copyright:: 2011, Formspring.me

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

python >= 0.0.0

Contingent cookbooks

application_python Applicable Versions
carbon-relay-ng Applicable Versions
consul-template Applicable Versions
corbel Applicable Versions
cuckoo Applicable Versions
elastalert Applicable Versions
harstorage Applicable Versions
hubot Applicable Versions
ipynb Applicable Versions
mediacore Applicable Versions
ngrok Applicable Versions
opsworks_python Applicable Versions
pip_elastalert Applicable Versions
ros Applicable Versions
rundeck-alt Applicable Versions
strongloop Applicable Versions

supervisor Cookbook CHANGELOG

This file is used to list changes made in each version of the supervisor cookbook.

v0.4.10

Bug

  • COOK-3784 - Only remove newlines when absolutely necessary

v0.4.8

Bug

  • COOK-3448 - Remove duplicate :restart provider

v0.4.6

Bug

v0.4.4

Bug:

  • [COOK-3284]: supervisor cookbook upgrades distribute to 0.7.3, breaks pip

v0.4.2

Bug

  • [COOK-2601]: support supervisor on SmartOS
  • [COOK-2980]: supervisor cookbook has foodcritic errors

v0.4.0

  • [COOK-2157] - add inet_http_server and logfile config settings

v0.3.0

  • [COOK-2053] - Supervisor cookbook missing stopasgroup

v0.2.0

  • [COOK-1720] - support for 'minfds' or 'minprocs' parameters

Collaborator Number Metric
            

0.4.12 failed this metric

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

Contributing File Metric
            

0.4.12 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.4.12 failed this metric

FC064: Ensure issues_url is set in metadata: supervisor/metadata.rb:1
FC065: Ensure source_url is set in metadata: supervisor/metadata.rb:1
FC066: Ensure chef_version is set in metadata: supervisor/metadata.rb:1
FC069: Ensure standardized license defined in metadata: supervisor/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: supervisor/resources/fcgi.rb:1
FC074: LWRP should use DSL to define resource's default action: supervisor/resources/group.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.4.12 passed this metric

Testing File Metric
            

0.4.12 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.4.12 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