---
dependencies:
  - role: monitoring-common
    when: monitoring.enabled|default(True)|bool
  - role: logging-config
    when: logging.enabled|default(True)|bool
    service: magnum
    logdata: "{{ magnum.logs }}"
  - role: openstack-source
    project_name: magnum
    project_rev: "{{ magnum.source.rev }}"
    virtualenv: "{{ magnum.source.virtualenv }}"
    system_dependencies: "{{ magnum.source.system_dependencies }}"
    python_dependencies: "{{ magnum.source.python_dependencies }}"
    alternatives: "{{ magnum.alternatives }}"
    when: openstack_install_method == 'source'
  - role: openstack-package
    project_name: magnum
    alternatives: "{{ magnum.alternatives }}"
    when: openstack_install_method == 'package'
  - role: collectd-plugin
    when: collectd is defined and collectd.enabled|bool
  - role: openstack-database
    database_name: magnum

---
dependencies:
  - role: endpoints
  - role: monitoring-common
    when: monitoring.enabled|default(True)|bool
  - role: logging-config
    when: logging.enabled|default(True)|bool
    service: magnum
    logdata: "{{ magnum.logs }}"
  - role: openstack-source
    project_name: magnum
    project_rev: "{{ magnum.source.rev }}"
    virtualenv: "{{ magnum.source.virtualenv }}"
    system_dependencies: "{{ magnum.source.system_dependencies }}"
    python_dependencies: "{{ magnum.source.python_dependencies }}"
    alternatives: "{{ magnum.alternatives }}"
    when: openstack_install_method == 'source'
  - role: openstack-package
    project_name: magnum
    alternatives: "{{ magnum.alternatives }}"
    when: openstack_install_method == 'package'
  - role: collectd-plugin
    when: collectd is defined and collectd.enabled|bool
  - role: openstack-database
    database_name: magnum

Add endpoints role dependency to magnum
Add endpoints role dependency to magnum
