summaryrefslogtreecommitdiff
path: root/devstack/README.rst
blob: 4f7ca6bff262d115c35fbc79419ee68c3a23e8dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
..
    c) Copyright 2015 Hewlett-Packard Development Company, L.P.

    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.

=================================
 Enabling Searchlight in Devstack
=================================

1. Download DevStack (git clone)

2. Update local.conf

You may follow the customization instructions below or use the example
local.conf.

3. Run ``stack.sh``

.. note::
   This installs a headless JRE. If you are working on a desktop based OS
   (such as Ubuntu 14.04), this may cause tools like pycharms to no longer
   launch. You can switch between JREs and back: to a headed JRE version using:
   "sudo update-alternatives --config java".


Full example local.conf
=======================

The example local.conf MAY not be up to date with the rest of devstack.

:download:`local.conf <local.conf>`

.. note::
   You will need to look through the settings and potentially customize it to your
   environment, especially ``HOST_IP``.

Existing local.conf customization
=================================

1. Add this repo as an external repository::

     > cat local.conf
     [[local|localrc]]
     enable_plugin searchlight https://git.openstack.org/openstack/searchlight
     enable_service searchlight-api
     enable_service searchlight-listener

   To use stable branches, make sure devstack is on that branch, and specify
   the branch name to enable_plugin, for example::

     enable_plugin searchlight https://git.openstack.org/openstack/searchlight stable/mitaka

2. Configure desired searchlight plugins

The search service is driven using a plugin mechanism for integrating to other
services. Each integrated service may need to be specifically enabled
in devstack and may require additional configuration settings to work with
searchlight. For example, you typically will need to set the notifications
driver in each service's configuration.

Please review the plugin documentation and add configuration appropriately:

 * `Searchlight Plugins <https://docs.openstack.org/searchlight/latest/configuration/plugins.html>`_

3. Customize searchlight configuration

Searchlight documentation talks about settings in ``searchlight.conf``.
To customize searchlight.conf settings, add them under the following
section in ``local.conf``::

    [[post-config|$SEARCHLIGHT_CONF]]