Merge "Drop root for kolla-ansible"

This commit is contained in:
Jenkins 2015-11-11 22:36:36 +00:00 committed by Gerrit Code Review
commit d9f49d1026
2 changed files with 8 additions and 2 deletions

View File

@ -24,9 +24,13 @@ RUN git clone --depth 1 -b v2.0.0-0.2.alpha2 https://github.com/ansible/ansible.
&& git submodule update --init --recursive \
&& pip --no-cache-dir install .
RUN mkdir -p /etc/ansible /usr/share/ansible \
&& echo 'localhost ansible_connection=local' > /etc/ansible/hosts
RUN mkdir -p /etc/ansible /usr/share/ansible /home/ansible \
&& echo 'localhost ansible_connection=local' > /etc/ansible/hosts \
&& useradd --user-group ansible --groups kolla
COPY kolla_keystone_service.py kolla_keystone_user.py /usr/share/ansible/
COPY ansible.cfg /home/ansible/.ansible.cfg
USER ansible
{{ include_footer }}

View File

@ -0,0 +1,2 @@
[defaults]
remote_tmp = /tmp