5695a65270
To enable IPMI meters, ensure IPMITool is installed[0] and the host supports Intel Node Manager. [0]: https://docs.openstack.org/ceilometer/latest/install/install-compute-rdo.html Co-Authored-By: caoyuan <cao.yuan@99cloud.net> Change-Id: I45b66277c31a4d0e33e0c14e01313aa688287ec7 Closes-Bug: #1767750
38 lines
1.1 KiB
Django/Jinja
38 lines
1.1 KiB
Django/Jinja
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 %}
|
|
|
|
{% elif install_type == 'source' %}
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
|
{% set ceilometer_ipmi_packages = [
|
|
'ipmitool'
|
|
] %}
|
|
{% elif base_distro in ['debian', 'ubuntu'] %}
|
|
{% set ceilometer_ipmi_packages = [
|
|
'ipmitool'
|
|
] %}
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{{ macros.install_packages(ceilometer_ipmi_packages | customizable("packages")) }}
|
|
|
|
{% block ceilometer_ipmi_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER ceilometer
|