Made settings in glance and nova flexible.

This commit is contained in:
Egon Rijpkema
2017-07-12 16:32:58 +02:00
parent dc8a75f6cb
commit 70814e1a77
11 changed files with 81 additions and 64 deletions

View File

@ -1,13 +1,5 @@
# Build and install a docker image for horizon.
# Run hpc/horizon
---
- name: Make build and persistent directories
file:
path: "{{ item }}"
state: directory
mode: 0777
with_items:
- /srv/horizon
- name: install service file.
template:
src: templates/horizon.service

View File

@ -6,8 +6,7 @@ Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker stop %n
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=-/usr/bin/docker rm -f %n
ExecStart=/usr/bin/docker run --name %n \
-e "MEMCACHED_SERVER={{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}" \
-e "OPENSTACK_HOST={{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}" \