Add ceilometer agent ipmi docker file

Change-Id: Id46e36b2bb57e03ce477254e7a853836a278a8c0
This commit is contained in:
Pradeep Kilambi 2017-04-06 14:17:54 -04:00
parent 9751b32a7b
commit cd04dc84d0
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,22 @@
FROM {{ namespace }}/{{ image_prefix }}ceilometer-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block ceilometer_ipmi_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set ceilometer_ipmi_packages = ['openstack-ceilometer-ipmi'] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
{% set ceilometer_ipmi_packages = ['ceilometer-agent-ipmi'] %}
{% endif %}
{{ macros.install_packages(ceilometer_ipmi_packages | customizable("packages")) }}
{% endif %}
{% block ceilometer_ipmi_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER ceilometer

View File

@ -0,0 +1,3 @@
---
features:
- Add ceilometer agent ipmi service image