From cd04dc84d0f82dfe01f10df9a2b1cdeee03ed169 Mon Sep 17 00:00:00 2001 From: Pradeep Kilambi Date: Thu, 6 Apr 2017 14:17:54 -0400 Subject: [PATCH] Add ceilometer agent ipmi docker file Change-Id: Id46e36b2bb57e03ce477254e7a853836a278a8c0 --- .../ceilometer/ceilometer-ipmi/Dockerfile.j2 | 22 +++++++++++++++++++ ...agent-ipmi-container-aa498b90c3d2f326.yaml | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 docker/ceilometer/ceilometer-ipmi/Dockerfile.j2 create mode 100644 releasenotes/notes/add-ceilometer-agent-ipmi-container-aa498b90c3d2f326.yaml diff --git a/docker/ceilometer/ceilometer-ipmi/Dockerfile.j2 b/docker/ceilometer/ceilometer-ipmi/Dockerfile.j2 new file mode 100644 index 0000000000..93c5990de1 --- /dev/null +++ b/docker/ceilometer/ceilometer-ipmi/Dockerfile.j2 @@ -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 diff --git a/releasenotes/notes/add-ceilometer-agent-ipmi-container-aa498b90c3d2f326.yaml b/releasenotes/notes/add-ceilometer-agent-ipmi-container-aa498b90c3d2f326.yaml new file mode 100644 index 0000000000..9c421f8ff9 --- /dev/null +++ b/releasenotes/notes/add-ceilometer-agent-ipmi-container-aa498b90c3d2f326.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add ceilometer agent ipmi service image