aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-08-21 13:07:28 +0000
committerGerrit Code Review <review@openstack.org>2015-08-21 13:07:28 +0000
commit6dd30b2a72b6e760ecd2426110dcf965f4793b57 (patch)
treefc181868433b6aab8394507ba7c403b76c99a79c
parent3bd021cd3959e0817b98616bc7756a6908472ace (diff)
parente4acef75cff3c0cce3ec55b01a5b8b59425d7434 (diff)
downloadkolla-6dd30b2a72b6e760ecd2426110dcf965f4793b57.tar.gz
kolla-6dd30b2a72b6e760ecd2426110dcf965f4793b57.zip
Merge "Add kolla-ansible for ubuntu"
-rw-r--r--docker_templates/kolla-ansible/Dockerfile.j216
1 files changed, 12 insertions, 4 deletions
diff --git a/docker_templates/kolla-ansible/Dockerfile.j2 b/docker_templates/kolla-ansible/Dockerfile.j2
index 5fa1e5aec..f502ef630 100644
--- a/docker_templates/kolla-ansible/Dockerfile.j2
+++ b/docker_templates/kolla-ansible/Dockerfile.j2
@@ -15,21 +15,29 @@ RUN yum -y install \
openssh-clients \
&& yum clean all
+RUN pip install -U pip wheel
+
{% elif base_distro in ['ubuntu', 'debian'] %}
-RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
- && /bin/false
+RUN apt-get install -y --no-install-recommends git
{% endif %}
-RUN pip install -U pip wheel \
- && pip install python-openstackclient shade
+RUN pip install shade
RUN git clone https://github.com/ansible/ansible.git \
&& cd ansible \
&& git submodule update --init --recursive \
&& 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 \
&& echo 'localhost ansible_connection=local' > /etc/ansible/hosts