freezer-api/devstack
gengchc2 a160098ecd Download, and install elasticsearch server for freezer-api
In devstack/pkg, there is an elasticsearch.sh for downloading,
installing, starting and uninstalling of elasticsearch server,
but it is not flexible. In the future, freezer-api needs to support
ubuntu-xenial and ubuntu-bonic, which requires different elasticsearch
server versions. In addition, the programming interface of elastic
search server varies greatly before and after 5.0.0, which requires
different code of freezer-api to support. Pre-5.0.0 version
of elasticsearch server cannot be installed on ubuntu-bonic.
For the convenience of modification, freezer-api maintains
the elastic search.sh script by itself.

Change-Id: Ie069e2fd1e29daf53d8b1490f152cd820df036fe
2018-12-20 00:46:58 +00:00
..
files Configure dsvm gate job to use uwsgi instead of apache2 2017-06-06 16:24:05 +01:00
lib Download, and install elasticsearch server for freezer-api 2018-12-20 00:46:58 +00:00
README.rst Add devstack sqlalchemy support for freezer 2018-10-30 02:07:20 -07:00
gate_hook.sh Configure gate jobs to collect the correct logs 2018-02-19 10:26:56 +00:00
local.conf.example This is incorrect url in example doc and conf 2016-03-24 15:04:04 +00:00
plugin.sh Refactoring dsvm gate job 2016-10-21 10:55:54 +00:00
settings Remove use of unsupported TEMPEST_SERVICES variable 2018-01-23 16:43:53 +03:00

README.rst

This directory contains the Freezer-API DevStack plugin.

To configure the Freezer API with DevStack, you will need to enable this plugin by adding one line to the local section of your local.conf file.

To enable the plugin, add a line of the form:

enable_plugin freezer-api <GITURL> [GITREF]

where:

<GITURL> is the URL of a freezer-api repository
[GITREF] is an optional git ref (branch/ref/tag).  The default is master.

For example:

enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api master

The plugin makes use of apache2 by default. To use the uwsgi server set the following environment variable:

export FREEZER_API_SERVER_TYPE=uwsgi

The default port is 9090. To configure the api to listen on a different port set the variable FREEZER_API_PORT. For example to make use of port 19090 use:

export FREEZER_API_PORT=19090

The plugin makes use of elasticsearch as db backend by default. To use the sqlachemy set the following environment variable:

export FREEZER_BACKEND='sqlalchemy'

For more information, see:

https://docs.openstack.org/devstack/latest/plugins.html