Made settings in glance and nova flexible.
This commit is contained in:
@ -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
|
||||
|
@ -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'] }}" \
|
||||
|
Reference in New Issue
Block a user