Add instructions on generating sample config

The readme previously was not updated since zaqar moved to
oslo-config-generator generated sample config files. This amends the
setup instructions with how to generate them.

Change-Id: I20527944e3a4438b5a0c4dac4c07fcbd5d6b64a5
This commit is contained in:
Louis Taylor 2014-11-20 17:34:22 +00:00
parent b5ef2835a4
commit 40a40762dc

View File

@ -7,9 +7,9 @@ To find more information read our `wiki`_.
Running a local Zaqar server with MongoDB Running a local Zaqar server with MongoDB
----------------------------------------- -----------------------------------------
**Note:** These instructions are for running a local instance of Zaqar and **Note:** These instructions are for running a local instance of Zaqar and not
not all of these steps are required. It is assumed you have `MongoDB`_ all of these steps are required. It is assumed you have `MongoDB`_ and `tox`
installed and running. (see "Running tests" section below) installed and running.
1. From your home folder create the ``~/.zaqar`` folder and clone the repo:: 1. From your home folder create the ``~/.zaqar`` folder and clone the repo::
@ -17,10 +17,12 @@ installed and running.
$ mkdir .zaqar $ mkdir .zaqar
$ git clone https://github.com/openstack/zaqar.git $ git clone https://github.com/openstack/zaqar.git
2. Copy the Zaqar config files to the directory ``~/.zaqar``:: 2. Generate and copy the Zaqar config files to the directory ``~/.zaqar``::
$ cp zaqar/etc/zaqar.conf.sample ~/.zaqar/zaqar.conf $ cd zaqar
$ cp zaqar/etc/logging.conf.sample ~/.zaqar/logging.conf $ tox -e genconfig
$ cp etc/zaqar.conf.sample ~/.zaqar/zaqar.conf
$ cp etc/logging.conf.sample ~/.zaqar/logging.conf
3. Find ``[drivers]`` section in ``~/.zaqar/zaqar.conf`` 3. Find ``[drivers]`` section in ``~/.zaqar/zaqar.conf``
and specify to use mongodb storage:: and specify to use mongodb storage::
@ -43,7 +45,7 @@ installed and running.
5. Change directories back to your local copy of the repo:: 5. Change directories back to your local copy of the repo::
$ cd zaqar $ cd ~/zaqar
6. Run the following so you can see the results of any changes you 6. Run the following so you can see the results of any changes you
make to the code without having to reinstall the package each time:: make to the code without having to reinstall the package each time::