Add support for Aodh
Aodh is replacement for OpenStack Ceilometer Alarming service. Change-Id: I4daf2160fe6743d62e6874f9fe032d37c9db90b7 Partially-Implements: blueprint add-aodh
This commit is contained in:
parent
c21ac63691
commit
6f2fbe933e
18
docker/aodh/aodh-api/Dockerfile.j2
Normal file
18
docker/aodh/aodh-api/Dockerfile.j2
Normal file
@ -0,0 +1,18 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||
|
||||
RUN yum install -y openstack-aodh-api \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
||||
|
||||
{{ include_footer }}
|
||||
|
||||
USER aodh
|
8
docker/aodh/aodh-api/extend_start.sh
Normal file
8
docker/aodh/aodh-api/extend_start.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||
aodh-manage db_sync
|
||||
exit 0
|
||||
fi
|
25
docker/aodh/aodh-base/Dockerfile.j2
Normal file
25
docker/aodh/aodh-base/Dockerfile.j2
Normal file
@ -0,0 +1,25 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||
|
||||
RUN yum -y install \
|
||||
openstack-aodh-common \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% elif install_type == 'source' %}
|
||||
|
||||
ADD aodh-base-archive /aodh-base-source
|
||||
RUN ln -s aodh-base-source/* aodh \
|
||||
&& useradd --user-group aodh \
|
||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install -c requirements/upper-constraints.txt /aodh \
|
||||
&& mkdir -p /etc/aodh /var/log/aodh /home/aodh \
|
||||
&& cp -r /aodh/etc/* /etc/aodh/ \
|
||||
&& chown -R aodh: /etc/aodh /var/log/aodh /home/aodh
|
||||
|
||||
{% endif %}
|
||||
|
||||
RUN usermod -a -G kolla aodh
|
15
docker/aodh/aodh-evaluator/Dockerfile.j2
Normal file
15
docker/aodh/aodh-evaluator/Dockerfile.j2
Normal file
@ -0,0 +1,15 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||
|
||||
RUN yum install -y openstack-aodh-evaluator \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{{ include_footer }}
|
||||
|
||||
USER aodh
|
15
docker/aodh/aodh-expirer/Dockerfile.j2
Normal file
15
docker/aodh/aodh-expirer/Dockerfile.j2
Normal file
@ -0,0 +1,15 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||
|
||||
RUN yum install -y openstack-aodh-expirer \
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{{ include_footer }}
|
||||
|
||||
USER aodh
|
15
docker/aodh/aodh-listener/Dockerfile.j2
Normal file
15
docker/aodh/aodh-listener/Dockerfile.j2
Normal file
@ -0,0 +1,15 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||
|
||||
RUN yum install -y openstack-aodh-listener\
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{{ include_footer }}
|
||||
|
||||
USER aodh
|
15
docker/aodh/aodh-notifier/Dockerfile.j2
Normal file
15
docker/aodh/aodh-notifier/Dockerfile.j2
Normal file
@ -0,0 +1,15 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||
|
||||
RUN yum install -y openstack-aodh-notifier\
|
||||
&& yum clean all
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{{ include_footer }}
|
||||
|
||||
USER aodh
|
@ -53,7 +53,7 @@
|
||||
[profiles]
|
||||
infra = ceph,data,mariadb,haproxy,keepalived,kolla-ansible,memcached,mongodb,openvswitch,rabbitmq,rsyslog
|
||||
main = cinder,ceilometer,glance,heat,horizon,keystone,neutron,nova,swift
|
||||
aux = designate,gnocchi,ironic,magnum,zaqar
|
||||
aux = aodh,designate,gnocchi,ironic,magnum,zaqar
|
||||
default = data,kolla-ansible,glance,haproxy,heat,horizon,keepalived,keystone,memcached,mariadb,neutron,nova,openvswitch,rabbitmq,rsyslog
|
||||
gate = ceph,cinder,data,dind,glance,haproxy,heat,horizon,keepalived,keystone,kolla-ansible,mariadb,memcached,neutron,nova,openvswitch,rabbitmq,rsyslog
|
||||
|
||||
@ -74,6 +74,10 @@ gate = ceph,cinder,data,dind,glance,haproxy,heat,horizon,keepalived,keystone,kol
|
||||
type = url
|
||||
location = https://github.com/openstack/requirements/tarball/master
|
||||
|
||||
[aodh-base]
|
||||
type = url
|
||||
location = http://tarballs.openstack.org/aodh/aodh-master.tar.gz
|
||||
|
||||
[ceilometer-base]
|
||||
type = url
|
||||
location = http://tarballs.openstack.org/ceilometer/ceilometer-master.tar.gz
|
||||
|
Loading…
Reference in New Issue
Block a user