[install] Fix Ceilometer Debian install

This patch fixes the Ceilometer Debian install, by adding Debian
to a few conditionals, and removing some parts which aren't needed
in Debian.

Change-Id: If2234cb6000a86c3ac2d2309df3fd2fef9cc9927
This commit is contained in:
Thomas Goirand 2015-12-01 09:43:09 +01:00 committed by Matthew Kassawara
parent 198f1d877a
commit 2e5fce8bbd

View File

@ -15,7 +15,7 @@ unlike other services, the Telemetry service uses a NoSQL database.
See :ref:`environment-nosql-database` to install and configure See :ref:`environment-nosql-database` to install and configure
MongoDB before proceeding further. MongoDB before proceeding further.
.. only:: obs or ubuntu .. only:: obs or ubuntu or debian
1. Create the ``ceilometer`` database: 1. Create the ``ceilometer`` database:
@ -110,7 +110,7 @@ MongoDB before proceeding further.
| type | metering | | type | metering |
+-------------+----------------------------------+ +-------------+----------------------------------+
6. Create the Telemetry service API endpoints: 4. Create the Telemetry service API endpoints:
.. code-block:: console .. code-block:: console
@ -189,7 +189,7 @@ Install and configure components
openstack-ceilometer-central openstack-ceilometer-alarm \ openstack-ceilometer-central openstack-ceilometer-alarm \
python-ceilometerclient python-ceilometerclient
.. only:: ubuntu .. only:: ubuntu or debian
#. Install the packages: #. Install the packages:
@ -200,6 +200,13 @@ Install and configure components
ceilometer-alarm-evaluator ceilometer-alarm-notifier \ ceilometer-alarm-evaluator ceilometer-alarm-notifier \
python-ceilometerclient python-ceilometerclient
.. only:: debian
Respond to prompts for
:doc:`Identity service credentials <debconf/debconf-keystone-authtoken>`,
:doc:`service endpoint registration <debconf/debconf-api-endpoints>`,
and :doc:`message broker credentials <debconf/debconf-rabbitmq>`.
2. Edit the ``/etc/ceilometer/ceilometer.conf`` file and complete 2. Edit the ``/etc/ceilometer/ceilometer.conf`` file and complete
the following actions: the following actions:
@ -216,46 +223,48 @@ Install and configure components
as ':', '/', '+', and '@' in the connection string in accordance as ':', '/', '+', and '@' in the connection string in accordance
with RFC2396. with RFC2396.
* In the ``[DEFAULT]`` and ``[oslo_messaging_rabbit]`` sections, .. only:: obs or rdo or ubuntu
configure ``RabbitMQ`` message queue access:
.. code-block:: ini * In the ``[DEFAULT]`` and ``[oslo_messaging_rabbit]`` sections,
configure ``RabbitMQ`` message queue access:
[DEFAULT] .. code-block:: ini
...
rpc_backend = rabbit
[oslo_messaging_rabbit] [DEFAULT]
... ...
rabbit_host = controller rpc_backend = rabbit
rabbit_userid = openstack
rabbit_password = RABBIT_PASS
Replace ``RABBIT_PASS`` with the password you chose for the [oslo_messaging_rabbit]
``openstack`` account in ``RabbitMQ``. ...
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = RABBIT_PASS
* In the ``[DEFAULT]`` and ``[keystone_authtoken]`` sections, Replace ``RABBIT_PASS`` with the password you chose for the
configure Identity service access: ``openstack`` account in ``RabbitMQ``.
.. code-block:: ini * In the ``[DEFAULT]`` and ``[keystone_authtoken]`` sections,
configure Identity service access:
[DEFAULT] .. code-block:: ini
...
auth_strategy = keystone
[keystone_authtoken] [DEFAULT]
... ...
auth_uri = http://controller:5000 auth_strategy = keystone
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = ceilometer
password = CEILOMETER_PASS
Replace ``CEILOMETER_PASS`` with the password you chose for [keystone_authtoken]
the ``ceilometer`` user in the Identity service. ...
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = ceilometer
password = CEILOMETER_PASS
Replace ``CEILOMETER_PASS`` with the password you chose for
the ``ceilometer`` user in the Identity service.
* In the ``[service_credentials]`` section, configure service credentials: * In the ``[service_credentials]`` section, configure service credentials:
@ -335,7 +344,7 @@ Finalize installation
openstack-ceilometer-alarm-evaluator.service \ openstack-ceilometer-alarm-evaluator.service \
openstack-ceilometer-alarm-notifier.service openstack-ceilometer-alarm-notifier.service
.. only:: ubuntu .. only:: ubuntu or debian
* Restart the Telemetry services: * Restart the Telemetry services: