Add support for installing binary packages of watcher
Change-Id: I05b80a6c9455bc1faf986e1aa6b92cb6fd80d0fd
This commit is contained in:
parent
0c96526de8
commit
f1479c6e22
@ -3,11 +3,15 @@ MAINTAINER {{ maintainer }}
|
||||
|
||||
{% block watcher_api_header %}{% endblock %}
|
||||
|
||||
{% import "macros.j2" as macros with context %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
|
||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
||||
{% set watcher_api_packages = ['openstack-watcher-api'] %}
|
||||
{% elif base_distro in ['ubuntu'] %}
|
||||
{% set watcher_api_packages = ['watcher-api'] %}
|
||||
{% endif %}
|
||||
{{ macros.install_packages(watcher_api_packages | customizable("packages")) }}
|
||||
{% endif %}
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_watcher_extend_start
|
||||
|
@ -3,11 +3,15 @@ MAINTAINER {{ maintainer }}
|
||||
|
||||
{% block watcher_applier_header %}{% endblock %}
|
||||
|
||||
{% import "macros.j2" as macros with context %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
|
||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
||||
{% set watcher_applier_packages = ['openstack-watcher-applier'] %}
|
||||
{% elif base_distro in ['ubuntu'] %}
|
||||
{% set watcher_applier_packages = ['watcher-applier'] %}
|
||||
{% endif %}
|
||||
{{ macros.install_packages(watcher_applier_packages | customizable("packages")) }}
|
||||
{% endif %}
|
||||
|
||||
{% block watcher_applier_footer %}{% endblock %}
|
||||
|
@ -3,10 +3,15 @@ MAINTAINER {{ maintainer }}
|
||||
|
||||
{% block watcher_base_header %}{% endblock %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% import "macros.j2" as macros with context %}
|
||||
|
||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
||||
{% set watcher_base_packages = ['openstack-watcher-common'] %}
|
||||
{% elif base_distro in ['ubuntu'] %}
|
||||
{% set watcher_base_packages = ['watcher-common'] %}
|
||||
{% endif %}
|
||||
{{ macros.install_packages(watcher_base_packages | customizable("packages")) }}
|
||||
|
||||
{% elif install_type == 'source' %}
|
||||
|
||||
|
@ -3,11 +3,15 @@ MAINTAINER {{ maintainer }}
|
||||
|
||||
{% block watcher_engine_header %}{% endblock %}
|
||||
|
||||
{% import "macros.j2" as macros with context %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
|
||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
||||
{% set watcher_engine_packages = ['openstack-watcher-decision-engine'] %}
|
||||
{% elif base_distro in ['ubuntu'] %}
|
||||
{% set watcher_engine_packages = ['watcher-decision-engine'] %}
|
||||
{% endif %}
|
||||
{{ macros.install_packages(watcher_engine_packages | customizable("packages")) }}
|
||||
{% endif %}
|
||||
|
||||
{% block watcher_engine_footer %}{% endblock %}
|
||||
|
@ -81,7 +81,6 @@ class BuildTestCentosBinary(BuildTest, base.BaseTestCase):
|
||||
"solum-base",
|
||||
"tacker",
|
||||
"vmtp",
|
||||
"watcher-base",
|
||||
"zun-base",
|
||||
]
|
||||
|
||||
@ -120,7 +119,6 @@ class BuildTestUbuntuBinary(BuildTest, base.BaseTestCase):
|
||||
"solum-base",
|
||||
"tacker",
|
||||
"vmtp",
|
||||
"watcher-base",
|
||||
"zaqar",
|
||||
"zun-base",
|
||||
]
|
||||
@ -157,7 +155,6 @@ class BuildTestOracleLinuxBinary(BuildTest, base.BaseTestCase):
|
||||
"solum-base",
|
||||
"tacker",
|
||||
"vmtp",
|
||||
"watcher-base",
|
||||
"zun-base",
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user