RETIRED, Chef Cookbook - OpenStack Dashboard
Go to file
Jeremy Stanley 1de90fc0a2 Update .gitreview file for project rename
Change-Id: I016aadb02d9bb9be971a1c82e658757b7767d9c7
2015-06-13 00:47:27 +00:00
attributes Change the default for password_autocomplete to off 2015-02-16 09:48:05 -06:00
files/default changing css 2012-11-08 17:25:54 -06:00
recipes Fix horizon restarts apache2 before setup 2015-02-09 10:22:47 -06:00
spec Merge "Fix horizon restarts apache2 before setup" 2015-02-14 22:20:08 +00:00
templates/default Fix site directory defaults for apache 2.4 2015-01-16 14:51:52 -06:00
.gitignore Update lock files for stable juno branch 2015-02-27 14:55:44 -06:00
.gitreview Update .gitreview file for project rename 2015-06-13 00:47:27 +00:00
.rubocop.yml add a Rakefile to structure test runs 2014-09-30 14:48:45 +02:00
Berksfile Update lock files for stable juno branch 2015-02-27 14:55:44 -06:00
Berksfile.lock Update lock files for stable juno branch 2015-02-27 14:55:44 -06:00
CHANGELOG.md Change the default for password_autocomplete to off 2015-02-16 09:48:05 -06:00
CONTRIBUTING.md Workflow documentation is now in infra-manual 2014-12-05 03:30:44 +00:00
Gemfile Remove rake from Gemfile 2015-01-19 15:26:16 +08:00
Gemfile.lock Update lock files for stable juno branch 2015-02-27 14:55:44 -06:00
README.md Change the default for password_autocomplete to off 2015-02-16 09:48:05 -06:00
Rakefile add a Rakefile to structure test runs 2014-09-30 14:48:45 +02:00
TESTING.md Cleanup cookbook contact info 2014-10-14 09:50:00 -05:00
metadata.rb Switch back to pessimistic version constraint 2015-02-24 13:51:28 -06:00

README.md

Description

Installs the OpenStack Dashboard service Horizon as part of the OpenStack reference deployment Chef for OpenStack. The http://github.com/mattray/chef-openstack-repo contains documentation for using this cookbook in the context of a full OpenStack deployment. Horizon is currently installed from packages.

http://horizon.openstack.org

Requirements

  • Chef 0.10.0 or higher required (for Chef environment use).

Cookbooks

The following cookbooks are dependencies:

  • apache2
  • openstack-common

Usage

horizon

Sets up the packages needed to run the Horizon dashboard and its dependencies. Will be included from the server recipe.

apache2-server

Installs the Apache webserver and sets up an mod_wsgi container to run the Horizon dashboard. Will be included from the server recipe.

server

Sets up the Horizon dashboard and a webserver of type ['openstack']['dashboard']['server_type'] to run it, default type is 'apache2'.

"run_list": [
    "recipe[openstack-dashboard::server]"
]

Attributes

  • openstack['dashboard']['server_type'] - Selects the type of webserver to install
  • openstack['dashboard']['db']['username'] - Username for horizon database access
  • openstack['dashboard']['server_hostname'] - Sets the ServerName in the webserver config
  • openstack['dashboard']['allowed_hosts'] - List of host/domain names we can service (default: '[*]')
  • openstack['dashboard']['dash_path'] - Base path for dashboard files (document root)
  • openstack['dashboard']['wsgi_path'] - Path for wsgi dir
  • openstack['dashboard']['wsgi_socket_prefix'] - Location that will override the standard Apache runtime directory
  • openstack['dashboard']['ssl_offload'] - Set SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https') flag for offloading SSL
  • openstack['dashboard']['plugins'] - Array of plugins to include via INSTALED_APPS
  • openstack['dashboard']['simple_ip_management'] - Boolean to enable or disable simplified floating IP address management
  • openstack['dashboard']['http_port'] - Port that httpd should listen on (default: 80)
  • openstack['dashboard']['https_port'] - Port that httpd should listen on for using ssl (default: 443)
  • openstack['dashboard']['password_autocomplete'] - Toggle browser autocompletion for login form ('on' or 'off', default: 'off')
  • openstack['dashboard']['ssl_no_verify'] - Disable SSL certificate checks (useful for self-signed certificates)
  • openstack['dashboard']['ssl_cacert'] - The CA certificate to use to verify SSL connections
  • openstack['dashboard']['misc_local_settings'] - Additions to the local_settings conf file
  • openstack['dashboard']['hash_algorithm'] - Hash algorithm to use for hashing PKI tokens

Identity

  • openstack['dashboard']['identity_api_version'] - Force a specific Identity API version ('2.0' or '3', default: '2.0')
  • openstack['dashboard']['volume_api_version'] - Force a specific Cinder API version (default: '2')
  • openstack['dashboard']['keystone_multidomain_support'] - Boolean to enable multi-Domain support
  • openstack['dashboard']['keystone_default_domain'] - Default Domain if using API v3 and on a single-domain model (default: 'Default')
  • openstack['dashboard']['keystone_default_role'] - Default Keystone role assigned to project members (default: 'member')
  • openstack['dashboard']['keystone_backend']['name'] - Keystone backend in use ('native' or 'ldap', default: 'native')
  • openstack['dashboard']['keystone_backend']['can_edit_user'] - Boolean to allow some user-related identity operations (default: true)
  • openstack['dashboard']['keystone_backend']['can_edit_group'] - Boolean to allow some group-related identity operations (default: true)
  • openstack['dashboard']['keystone_backend']['can_edit_project'] - Boolean to allow some project-related identity operations (default: true)
  • openstack['dashboard']['keystone_backend']['can_edit_domain'] - Boolean to allow some domain-related identity operations (default: true)
  • openstack['dashboard']['keystone_backend']['can_edit_role'] - Boolean to allow some role-related identity operations (default: true)

Certificate

  • openstack['dashboard']['use_ssl'] - Toggle for using ssl with dashboard (default: true)
  • openstack['dashboard']['ssl']['dir'] - Directory where ssl certs are stored on this system (default: platform dependent)
  • openstack['dashboard']['ssl']['cert'] - Name to use when creating the ssl certificate
  • openstack['dashboard']['ssl']['cert_url'] - If using an existing certificate, this is the URL to its location
  • openstack['dashboard']['ssl']['key'] - Name to use when creating the ssl key
  • openstack['dashboard']['ssl']['key_url'] - If using an existing certificate key, this is the URL to its location

By default the openstack-dashboard cookbook ships with a self-signed certificate from a fake organization. It is possible to use a real production certificate from your organization by putting that certificate somewhere where the cookbook can download it from then simply passing in the URL of the certificate, and its corresponding key, using the 'cert_url' and 'key_url' attributes.

Testing

Please refer to the TESTING.md for instructions for testing the cookbook.

Berkshelf

Berks will resolve version requirements and dependencies on first run and store these in Berksfile.lock. If new cookbooks become available you can run berks update to update the references in Berksfile.lock. Berksfile.lock will be included in stable branches to provide a known good set of dependencies. Berksfile.lock will not be included in development branches to encourage development against the latest cookbooks.

License and Author

Author Justin Shepherd (justin.shepherd@rackspace.com)
Author Jason Cannavale (jason.cannavale@rackspace.com)
Author Ron Pedde (ron.pedde@rackspace.com)
Author Joseph Breu (joseph.breu@rackspace.com)
Author William Kelly (william.kelly@rackspace.com)
Author Darren Birkett (darren.birkett@rackspace.co.uk)
Author Evan Callicoat (evan.callicoat@rackspace.com)
Author Jay Pipes (jaypipes@att.com)
Author John Dewey (jdewey@att.com)
Author Matt Ray (matt@opscode.com)
Author Sean Gallagher (sean.gallagher@att.com)
Author Chen Zhiwei (zhiwchen@cn.ibm.com)
Author Jian Hua Geng (gengjh@cn.ibm.com)
Author Ionut Artarisi (iartarisi@suse.cz)
Author Eric Zhou (iartarisi@suse.cz)
Author Jens Rosenboom (j.rosenboom@x-ion.de)
Copyright Copyright (c) 2012, Rackspace US, Inc.
Copyright Copyright (c) 2012-2013, AT&T Services, Inc.
Copyright Copyright (c) 2013, Opscode, Inc.
Copyright Copyright (c) 2013-2014, IBM, Corp.
Copyright Copyright (c) 2013-2014, SUSE Linux GmbH.
Copyright Copyright (c) 2014, x-ion GmbH.

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.