solar/doc/source/installation.rst
Jedrzej Nowak 637afa23df Use openstack/solar-resources not Mirantis one
Change-Id: I0ace8937a171c63288d09dc07a94af284c96e6a4
Closes-bug: #1545630
2016-02-15 12:01:42 +01:00

54 lines
1.2 KiB
ReStructuredText

Installation
============
Please note that currently Solar is in a beta stage and it shouldn't be used in
production environments.
We also recommend testing Solar using a vagrant where fully working development
environment will be created.
If you want to try Solar outside Vagrant jump to `Local environment`_
Local environment
-----------------
If you want to test Solar locally you may install it via pip:
.. code-block:: bash
pip install solar
Create solar configuration `solar_config` file and paste following data:
.. code-block:: yaml
solar_db: sqlite:////tmp/solar.db
and set path to this configuration:
.. code-block:: bash
export SOLAR_CONFIG_OVERRIDE=<full/path/solar_config>
For more information about configuration see our FAQ questions:
:ref:`here <faq_what_database>`.
You also need to download Solar resources and
add them to a Solar repository.
.. code-block:: bash
git clone https://github.com/openstack/solar-resources
sudo mkdir -p /var/lib/solar/repositories
sudo chown -R <your_user_name> /var/lib/solar/
solar repo import -l solar-resources/resources/
solar repo import -l solar-resources/templates/
Next step is to start Solar orchestration worker.
.. code-block:: bash
solar-worker