set cinder availability zone
This commit is contained in:
parent
4309956de1
commit
6cbebf4c91
|
@ -20,6 +20,7 @@
|
|||
-e "OS_PASSWORD={{ secrets['OS_PASSWORD'] }}"
|
||||
-e "RABBIT_HOST={{ listen_ip | default(hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address']) }}"
|
||||
-e "RABBIT_PASSWORD={{ secrets['RABBIT_PASSWORD'] }}"
|
||||
-e "AVAILABILITY_ZONE={{ ansible_nodename }}"
|
||||
-e "RABBIT_USER=openstack"
|
||||
tags: vars
|
||||
|
||||
|
|
|
@ -16,8 +16,6 @@ ExecStart=/usr/bin/docker run --name %n \
|
|||
-v "{{ storage_volume }}":/dev/cinder_storage_volume \
|
||||
-v "/dev/lvm":/dev/lvm \
|
||||
-v "/srv/cinder-storage/volumes/:/var/lib/cinder/volumes/" \
|
||||
-p 8777:8776 \
|
||||
-p 3260:3260 \
|
||||
--network=host \
|
||||
{{ docker_image }}
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ ExecStart=/usr/bin/docker run --name %n \
|
|||
-e "RABBIT_HOST={{ hostvars[groups['rabbitmq'][0]]['listen_ip'] | default(hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address']) }}" \
|
||||
-e "RABBIT_PASSWORD={{ secrets['RABBIT_PASSWORD'] }}" \
|
||||
-e "RABBIT_USER=openstack" \
|
||||
-e "AVAILABILITY_ZONE={{ ansible_nodename }}" \
|
||||
--add-host=keystone:{{ hostvars[groups['keystone'][0]]['listen_ip'] | default(hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address']) }} \
|
||||
--add-host=mariadb:{{ hostvars[groups['databases'][0]]['listen_ip'] | default(hostvars[groups['databases'][0]]['ansible_default_ipv4']['address']) }} \
|
||||
--privileged \
|
||||
|
|
Loading…
Reference in New Issue