Merge "Properly use groups throught Ansible"
This commit is contained in:
commit
f8fe9372e0
@ -7,6 +7,7 @@
|
|||||||
container_name: "glance_registry"
|
container_name: "glance_registry"
|
||||||
container_volumes:
|
container_volumes:
|
||||||
- "{{ node_config_directory }}/glance-registry/:/opt/kolla/glance-registry/:ro"
|
- "{{ node_config_directory }}/glance-registry/:/opt/kolla/glance-registry/:ro"
|
||||||
|
when: inventory_hostname in groups['glance-registry']
|
||||||
|
|
||||||
- include: ../../start.yml
|
- include: ../../start.yml
|
||||||
vars:
|
vars:
|
||||||
@ -16,3 +17,4 @@
|
|||||||
container_name: "glance_api"
|
container_name: "glance_api"
|
||||||
container_volumes:
|
container_volumes:
|
||||||
- "{{ node_config_directory }}/glance-api/:/opt/kolla/glance-api/:ro"
|
- "{{ node_config_directory }}/glance-api/:/opt/kolla/glance-api/:ro"
|
||||||
|
when: inventory_hostname in groups['glance-api']
|
||||||
|
@ -1,39 +1,28 @@
|
|||||||
---
|
---
|
||||||
- hosts: haproxy
|
- hosts: haproxy
|
||||||
roles:
|
roles:
|
||||||
- haproxy
|
- { role: haproxy, tags: haproxy, keepalived when: enable_haproxy | bool }
|
||||||
tags: haproxy
|
|
||||||
|
|
||||||
- hosts: mariadb
|
- hosts: mariadb
|
||||||
roles:
|
roles:
|
||||||
- mariadb
|
- { role: mariadb, tags: mariadb, when: enable_mariadb | bool }
|
||||||
tags: mariadb
|
|
||||||
|
|
||||||
- hosts: rabbitmq
|
- hosts: rabbitmq
|
||||||
roles:
|
roles:
|
||||||
- rabbitmq
|
- { role: rabbitmq, tags: rabbitmq, when: enable_rabbitmq | bool }
|
||||||
tags: rabbitmq
|
|
||||||
|
|
||||||
- hosts: keystone
|
- hosts: keystone
|
||||||
roles:
|
roles:
|
||||||
- keystone
|
- { role: keystone, tags: keystone, when: enable_keystone | bool }
|
||||||
tags: keystone
|
|
||||||
|
|
||||||
- hosts: glance
|
- hosts: [glance-api, glance-registry]
|
||||||
roles:
|
roles:
|
||||||
- glance
|
- { role: glance, tags: glance, when: enable_glance | bool }
|
||||||
tags: glance
|
|
||||||
|
|
||||||
- hosts:
|
- hosts: [nova-api, nova-conductor, nova-consoleauth, nova-novncproxy, nova-scheduler, compute]
|
||||||
- nova
|
|
||||||
- compute
|
|
||||||
roles:
|
roles:
|
||||||
- nova
|
- { role: nova, tags: nova, when: enable_nova | bool }
|
||||||
tags: nova
|
|
||||||
|
|
||||||
- hosts:
|
- hosts: [neutron-server, neutron-agents, compute]
|
||||||
- neutron
|
|
||||||
- compute
|
|
||||||
roles:
|
roles:
|
||||||
- neutron
|
- { role: neutron, tags: neutron, when: enable_neutron | bool }
|
||||||
tags: neutron
|
|
||||||
|
@ -32,3 +32,14 @@ glance_registry_port: "9191"
|
|||||||
nova_api_port: "8774"
|
nova_api_port: "8774"
|
||||||
|
|
||||||
neutron_server_port: "9696"
|
neutron_server_port: "9696"
|
||||||
|
|
||||||
|
|
||||||
|
# These roles are required for Kolla to be operation, however a savvy deployer
|
||||||
|
# could disable some of these required roles and run thier own services.
|
||||||
|
enable_glance: "yes"
|
||||||
|
enable_haproxy: "yes"
|
||||||
|
enable_keystone: "yes"
|
||||||
|
enable_mariadb: "yes"
|
||||||
|
enable_neutron: "yes"
|
||||||
|
enable_nova: "yes"
|
||||||
|
enable_rabbitmq: "yes"
|
||||||
|
Loading…
Reference in New Issue
Block a user