cb6bc308c0
Instead of bothering with definition of python lib dirs per distro, we can just get ceilometer library directory with python command. `ceilometer_lib_dir` variable is mainly used by post_install task. This variable is not set correctly at the moment if role is ran with ceilometer-config tag. So this patch also fix running role with that tag Change-Id: Id4fe9a8eef27bdd1c71104007e6b493f3f5109d5
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
---
|
|
# Copyright 2014, Rackspace US, Inc.
|
|
#
|
|
# 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.
|
|
|
|
ceilometer_distro_packages:
|
|
- git
|
|
- "{{ (ansible_distribution_major_version|int <= 7) | ternary('libvirt-devel', 'python3-libvirt') }}"
|
|
|
|
ceilometer_devel_distro_packages:
|
|
- systemd-devel
|
|
- which
|
|
- libxml2-devel
|
|
- libxslt-devel
|
|
|
|
ceilometer_service_distro_packages:
|
|
- openstack-ceilometer-central
|
|
- openstack-ceilometer-compute
|
|
- openstack-ceilometer-ipmi
|
|
- openstack-ceilometer-notification
|
|
- openstack-ceilometer-polling
|
|
- systemd-python
|
|
|
|
ceilometer_oslomsg_amqp1_distro_packages:
|
|
- cyrus-sasl-lib
|
|
- cyrus-sasl-plain
|
|
- cyrus-sasl-md5
|
|
|
|
ceilometer_packages_to_symlink: |-
|
|
{% set packages = [] %}
|
|
{% if ansible_distribution_major_version|int > 7 %}
|
|
{% set _ = packages.extend(['python3-libvirt']) %}
|
|
{% endif %}
|
|
{{ packages }}
|
|
|
|
ceilometer_extra_pip_packages:
|
|
- libvirt-python
|