Name: supervisor
Owner: Artsy
Description: Development repository for Opscode Cookbook supervisor
Forked from: poise/supervisor
Created: 2017-09-15 20:56:41.0
Updated: 2017-09-15 20:56:42.0
Pushed: 2018-01-23 17:37:01.0
Homepage: null
Size: 139
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Installs (Python) supervisor and provides resources to configure services
Supports Debian and RHEL based systems. Tested on Ubuntu 12.04, 10.04, CentOS 6.5.
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']['nocleanup']
- If true, retain child log files at startup, the default is false
node['supervisor']['version']
- Sets the version of supervisor to install, must be 3.0+ to use minprocs, minfds and nocleanup.
node['supervisor']['socket_file']
- location of supervisor socket file.
node['supervisor']['ctlplugins']
- entries for supervisorctl
plugins.
For instance, to install serialrestart, you'd manually add this to your config:
plugin:serialrestart]
rvisor.ctl_factory = supervisorserialrestart.controllerplugin:make_serialrestart_controllerplugin
Which can be achieved using
.default['supervisor']['ctlplugins'] = ({
rialrestart'=> 'supervisorserialrestart.controllerplugin:make_serialrestart_controllerplugin'
The default action is the array [:enable, :start]
. Actions use the supervisorctl
program.
:service_name
- (Name Attribute), a string, name of the serviceThe 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
- stringrvisor_service "celery" do
tion :enable
tostart false
er "nobody"
Includes the python recipe, installs the supervisor PIP package and sets up supervisor.
right:: 2011-2012, Opscode, Inc <legal@opscode.com>
right:: 2011, Formspring.me
nsed under the Apache License, Version 2.0 (the "License");
may not use this file except in compliance with the License.
may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
ss required by applicable law or agreed to in writing, software
ributed under the License is distributed on an "AS IS" BASIS,
OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
the License for the specific language governing permissions and
tations under the License.