uci engine wsgi app #1

Description

Deploys a web application using the restish, pyramid, or django frameworks

Overview

CI Airline wsgi-app charm.

Usage

To deploy::

make
juju deploy --repository=$(readlink -f $(pwd)/../..) local:wsgi-app

Contact Information

Andy Doan andy.doan@canonical.com

Configuration

install_root
(string) The root directory the service will be installed in
/srv/
wsgi_user
(string) Switch worker processes to run as this user. User id (as an int) or the name.
www-data
json_status_path
(string) relative path of a URL that reports the health status of this service
install_keys
(string) YAML list of GPG keys for installation sources, as a string. For apt repository URLs, use the public key ID used to verify package signatures. For other sources such as PPA, use empty string. This list must have the same number of elements as install_sources, even if the key items are all empty string. An example to go with the above for install_sources: install_keys: | - "" - ""
port
(int) Port the application will be listening.
8080
log_level
(string) The logging level.
INFO
hostname
(string) External hostname for your service, to be added to allowed_hosts.
nagios_check_health_params
(string) The parameters to pass to the nrpe plugin check_health.
python_path
(string) PYTHONPATH specification for the service. Can include paths relative to local bzr directory
nagios_check_http_params
(string) The parameters to pass to the nrpe plugin check_http.
cron_schedule
(string) Cron-format schedule interval to run the command (m h dom mon dow)
0 0 * * *
db_migration_cmd
(string) Optional command to run after charm install/upgrade to handle database migrations. This can be specified as a relative path to the root directory of your your tarball.
amqp-admin
(boolean) Whether or not the user should have administration rights.
framework
(string) Which framework to use 'restish', 'pyramid', or 'django'
restish
amqp-vhost
(string) The vhost in the rabbitMQ server.
/
packages
(string) Packages required for this service
python-webtest python-mock python-jinja2
current_code
(string) A URL to a tarball of the code
wsgi_group
(string) Switch worker process to run as this group. A valid group id (as an int) or the name.
www-data
unit-config
(string) base64 encoded string to hold configuration information for the unit. The contents will be written to a file named <install_root>/<unit>/unit_config where <unit> is the location the branch is extracted to.
nagios_context
(string) Used by the nrpe-external-master subordinate charm. A string that will be prepended to instance name to set the host name in nagios. So for instance the hostname would be something like: juju-postgresql-0 If you\'re running multiple environments with the same services in them this allows you to differentiate between them.
restish
available_code
(string) A list of code deployment URLs to keep around. Any versions found locally not in this list will be removed.
extra_allowed_hosts
(string) Space seperated extra host names and IPs to be added to allowed_hosts.
cron_cmd
(string) Allow a command to be run periodically by cron. This can be specified as a relative path to the root directory of your tarball.
amqp-user
(string) The user to log into the rabbitMQ server.
workerbee
install_sources
(string) YAML list of additional installation sources, as a string. The number of install_sources must match the number of install_keys. For example: install_sources: | - ppa:project1/ppa - ppa:project2/ppa