manage.rb

_images/chef_automate_full.png

Chef management console is a web-based interface for the Chef server that provides users a way to manage the following objects:

  • Nodes
  • Cookbooks and recipes
  • Roles
  • Stores of JSON data (data bags), including encrypted data
  • Environments
  • Searching of indexed data
  • User accounts and user data for the individuals who have permission to log on to and access the Chef server

The manage.rb file is the default configuration file used by Chef management console. These settings are applied every time chef-manage-ctl reconfigure is run.

The configuration file is located at: /etc/chef-manage/manage.rb.

Note

This feature is included as part of the Chef Automate license agreement and is available via subscription.

Settings

Warning

All of the following settings should be specified without using the equals symbol (=). For example:

chef_documentation_url 'https://docs.chef.io'

This configuration file has the following settings:

backbone_paginator_timeout
The amount of time (in milliseconds) after which search requests made via the web client will timeout and cause an error. Default value: 120000.
chef_documentation_url
The URL at which documentation for Chef is located. Default value: https://docs.chef.io.
disable_sign_up
Use to disable sign-up and only allow sign-in. Default value: false.
email_from_address
The email address from which Chef server notifications are sent. Default value: 'Chef Notifications <[email protected]>'.
events.port
The port on which the events services run. Default value: 11001.
logging.chef_log_level
The log level used for requests to the Chef server from the web application. Default value: info.
logging.log_level
The log level for Ruby on Rails services. Default value: info.
max_login_failures
The the maximim number of failed login attempts allowed before the user must use the password reset link to reset their password (has no effect when using external authentication/LDAP). Default value: 7.
nginx_addon_prefix
The prefix used by Chef management console. Default value: 30.
org_creation_enabled
Whether or not users can create new organizations from Chef management console. Default value: true.
platform.user
The name of the privileged user that manages requests to the Chef server. Default value: 'pivotal'.
platform.key_file
The key file used by the privileged user. Default value: '/etc/opscode/webui_priv.pem'.
public_port
The port on which the external load balancer will listen. Default value: 443.
redis.host
The host on which Redis runs. Default value: localhost.
redis.port
The port on which Redis listens. Default value: 11002.
redis.url
The URL used by Redis. Default value: redis://#{redis.host}:#{redis.port}/0.
runit_timeout
The amount of time (in seconds) to wait before timing out. Default value: 30.
secret_token
The secret token used by Ruby on Rails to prevent session tampering. See: http://guides.rubyonrails.org/security.html#session-storage. Default value: (a token).
services['opscode-manage-events'].enable
Use to enable the opscode-manage-events service. Default value: true.
services['opscode-manage-webapp'].enable
Use to enable the opscode-manage-webapp service. Default value: true.
services['opscode-manage-worker'].enable
Use to enable the opscode-manage-worker service. Default value: true.
session_timeout
The amount of time (in minutes) of inactivity before a user is logged out. When not set (or set to 0), a browser session will not have a timed expiration and will expire when the browser session ends, quits, or when the computer restarts, or when the absolute session time limit is hit (see session_timeout_absolute). Default value: 1440 (one day).
session_timeout_absolute
The amount of time (in minutes) after which a user will be logged out, regardless of activity. When not set (or set to 0), a browser session will not have a timed expiration unless a session is inactive longer than the session time limit (see session_timeout). Default value: 10080 (one week).
sign_in_page_message
A message to display on the sign-in page. If present, the message will show up in a box on the sign in page. Any valid HTML is allowed here. Default value: nil.
support_email_address
The email address used to send feedback. Default value: [email protected].
support_site_url
The URL at which links to Chef support are located. Default value: http://chef.io/support.
support_tickets_url
The URL at which Chef support tickets are created. Default value: https://chef.io/support/tickets.
webapp.backlog
The size of the backlog. Default value: 1024.
webapp.listen
The port on which Chef management console services listen. Default value: { '127.0.0.1:#{port}' }.
webapp.port
The port on which Chef management console services run. Default value: 9462.
webapp.tcp_nodelay
Enable the Nagle buffering algorithm. Default value: true.
webapp.worker_processes
The number of allowed worker processes. Default value: node['cpu.total'].to_i.
webapp.worker_timeout
The amount of time (in seconds) that a worker can be silent before it is killed and restarted. Default value: 3600.

Example

The following example shows how the settings look when added to the configuration file:

chef_documentation_url 'https://docs.chef.io'
disable_sign_up false
events.port 11001
logging.chef_log_level 'info'
logging.log_level 'info'
nginx_addon_prefix 30
platform.user 'pivotal'
platform.key_file '/etc/opscode/webui_priv.pem'
public_port 443
redis.host 'localhost'
redis.port 11002
# redis.url derived from redis.host and redis.port
runit_timeout 30
secret_token 'abcdefghij1234567890KLMNOPQRST1234567890uvwxyzabcd'
services['opscode-manage-events'].enable true
services['opscode-manage-webapp'].enable true
services['opscode-manage-worker'].enable true
support_email_address '[email protected]'
support_site_url 'http://chef.io/support'
support_tickets_url 'https://chef.io/support/tickets'
webapp.backlog 1024
# webapp.listen derived from webapp.port
webapp.port 9462
webapp.tcp_nodelay true
webapp.worker_processes 2
webapp.worker_timeout 3600

© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs-archive.chef.io/release/server_12-8/config_rb_manage.html