Add kolla-ansible for ubuntu
Change-Id: Ia62a9df706b5d1c9c1673d5664839b3a561f3c51 Partially-Implements: blueprint install-from-ubuntu
This commit is contained in:
parent
9cb2b3fc95
commit
e4acef75cf
@ -15,21 +15,29 @@ RUN yum -y install \
|
|||||||
openssh-clients \
|
openssh-clients \
|
||||||
&& yum clean all
|
&& yum clean all
|
||||||
|
|
||||||
|
RUN pip install -U pip wheel
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||||
|
|
||||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
RUN apt-get install -y --no-install-recommends git
|
||||||
&& /bin/false
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
RUN pip install -U pip wheel \
|
RUN pip install shade
|
||||||
&& pip install python-openstackclient shade
|
|
||||||
|
|
||||||
RUN git clone https://github.com/ansible/ansible.git \
|
RUN git clone https://github.com/ansible/ansible.git \
|
||||||
&& cd ansible \
|
&& cd ansible \
|
||||||
&& git submodule update --init --recursive \
|
&& git submodule update --init --recursive \
|
||||||
&& pip install .
|
&& pip install .
|
||||||
|
|
||||||
|
{% if base_distro in ['ubuntu', 'debian'] %}
|
||||||
|
|
||||||
|
# TODO(SamYaple): Ubuntu installs pip packages to /usr/local/bin/ rather than
|
||||||
|
# /usr/bin This can be removed once the bin paths are generic
|
||||||
|
RUN ln -s /usr/local/bin/ansible /usr/bin/ansible
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
RUN mkdir -p /etc/ansible /usr/share/ansible \
|
RUN mkdir -p /etc/ansible /usr/share/ansible \
|
||||||
&& echo 'localhost ansible_connection=local' > /etc/ansible/hosts
|
&& echo 'localhost ansible_connection=local' > /etc/ansible/hosts
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user