small fixes mostly variable names
This commit is contained in:
parent
4db6499419
commit
f06a943916
@ -11,6 +11,8 @@
|
|||||||
-e "GLANCE_HOST={{ hostvars[groups['glance-controller'][0]]['ansible_default_ipv4']['address'] }}"
|
-e "GLANCE_HOST={{ hostvars[groups['glance-controller'][0]]['ansible_default_ipv4']['address'] }}"
|
||||||
-e "GLANCE_USER=glance"
|
-e "GLANCE_USER=glance"
|
||||||
-e "GLANCE_PASSWORD=geheim"
|
-e "GLANCE_PASSWORD=geheim"
|
||||||
|
-e "RABBIT_USER=openstack"
|
||||||
|
-e "RABBIT_PASSWORD=geheim"
|
||||||
|
|
||||||
- name: pull docker image
|
- name: pull docker image
|
||||||
docker_image:
|
docker_image:
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
-e "NOVA_PASSWORD=geheim"
|
-e "NOVA_PASSWORD=geheim"
|
||||||
-e "NOVA_USER=nova"
|
-e "NOVA_USER=nova"
|
||||||
-e "MEMCACHED_HOST={{ hostvars[groups['memcached'][0]]['ansible_default_ipv4']['address'] }}"
|
-e "MEMCACHED_HOST={{ hostvars[groups['memcached'][0]]['ansible_default_ipv4']['address'] }}"
|
||||||
-e "PROVIDER_INTERFACE_NAME={{ hostvars[groups['neutron-controller'][0]]['ansible_default_ipv4']['interface'] }}"
|
-e "PROVIDER_INTERFACE_NAME={{ provider_interface_name }}"
|
||||||
-e "RABBIT_PASSWORD=geheim"
|
-e "RABBIT_PASSWORD=geheim"
|
||||||
-e "RABBIT_USER=openstack"
|
-e "RABBIT_USER=openstack"
|
||||||
tags: env
|
tags: env
|
||||||
|
@ -21,17 +21,18 @@ ExecStart=/usr/bin/docker run --name %n \
|
|||||||
-e "MEMCACHED_HOST={{ hostvars[groups['memcached'][0]]['ansible_default_ipv4']['address'] }}" \
|
-e "MEMCACHED_HOST={{ hostvars[groups['memcached'][0]]['ansible_default_ipv4']['address'] }}" \
|
||||||
-e "MYSQL_HOST={{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }}" \
|
-e "MYSQL_HOST={{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }}" \
|
||||||
-e "MYSQL_ROOT_PASSWORD=geheim" \
|
-e "MYSQL_ROOT_PASSWORD=geheim" \
|
||||||
-e "NEUTRON_CONTROLLER_HOST={{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}" \
|
-e "NEUTRON_CONTROLLER_HOST={{ hostvars[groups['neutron-controller'][0]]['ansible_default_ipv4']['address'] }}" \
|
||||||
-e "NEUTRON_PASSWORD=geheim" \
|
-e "NEUTRON_PASSWORD=geheim" \
|
||||||
-e "NEUTRON_USER=neutron" \
|
-e "NEUTRON_USER=neutron" \
|
||||||
-e "NOVA_CONTROLLER_HOST={{ hostvars[groups['nova-controller'][0]]['ansible_default_ipv4']['address'] }}" \
|
-e "NOVA_CONTROLLER_HOST={{ hostvars[groups['nova-controller'][0]]['ansible_default_ipv4']['address'] }}" \
|
||||||
-e "PROVIDER_INTERFACE_NAME={{ hostvars[groups['neutron-controller'][0]]['ansible_default_ipv4']['interface'] }}" \
|
-e "PROVIDER_INTERFACE_NAME={{ provider_interface_name }}" \
|
||||||
-e "GLANCE_CONTROLLER_HOST={{ hostvars[groups['glance-controller'][0]]['ansible_default_ipv4']['address'] }}" \
|
-e "GLANCE_CONTROLLER_HOST={{ hostvars[groups['glance-controller'][0]]['ansible_default_ipv4']['address'] }}" \
|
||||||
--add-host=keystone:{{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }} \
|
--add-host=keystone:{{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }} \
|
||||||
--add-host=mariadb:{{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }} \
|
--add-host=mariadb:{{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }} \
|
||||||
--privileged \
|
--privileged \
|
||||||
-v /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock \
|
-v /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock \
|
||||||
-v /srv/osdisks:/var/lib/nova/instances \
|
-v /var/lib/nova/instances:/var/lib/nova/instances \
|
||||||
|
-v /lib/modules:/lib/modules \
|
||||||
--network host \
|
--network host \
|
||||||
{{ docker_image }} /etc/run.sh
|
{{ docker_image }} /etc/run.sh
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
name: rabbitmq.service
|
name: rabbitmq.service
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
|
- name: wait for container to be started
|
||||||
|
wait_for:
|
||||||
|
port: 15671
|
||||||
|
|
||||||
- name: setup the cluster
|
- name: setup the cluster
|
||||||
command: "docker exec -i rabbitmq.service {{ item }}"
|
command: "docker exec -i rabbitmq.service {{ item }}"
|
||||||
with_items:
|
with_items:
|
||||||
|
Loading…
Reference in New Issue
Block a user