Skip to content
Snippets Groups Projects
site.yml 28.1 KiB
Newer Older
- import_playbook: gather-facts.yml
# NOTE(mgoddard): In large environments, even tasks that are skipped can take a
# significant amount of time. This is an optimisation to prevent any tasks
# running in the subsequent plays for services that are disabled.
- name: Group hosts based on configuration
  hosts: all
  gather_facts: false
  max_fail_percentage: >-
    {{ group_hosts_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  tasks:
    - name: Group hosts based on Kolla action
      group_by:
        key: "kolla_action_{{ kolla_action }}"
      changed_when: false

    - name: Group hosts based on enabled services
      group_by:
        key: "{{ item }}"
      changed_when: false
      with_items:
        - enable_aodh_{{ enable_aodh | bool }}
        - enable_barbican_{{ enable_barbican | bool }}
        - enable_blazar_{{ enable_blazar | bool }}
        - enable_ceilometer_{{ enable_ceilometer | bool }}
        - enable_ceph_rgw_{{ enable_ceph_rgw | bool }}
        - enable_cinder_{{ enable_cinder | bool }}
        - enable_cloudkitty_{{ enable_cloudkitty | bool }}
        - enable_collectd_{{ enable_collectd | bool }}
        - enable_cyborg_{{ enable_cyborg | bool }}
        - enable_designate_{{ enable_designate | bool }}
        - enable_etcd_{{ enable_etcd | bool }}
        - enable_glance_{{ enable_glance | bool }}
        - enable_gnocchi_{{ enable_gnocchi | bool }}
        - enable_grafana_{{ enable_grafana | bool }}
        - enable_hacluster_{{ enable_hacluster | bool }}
        - enable_heat_{{ enable_heat | bool }}
        - enable_horizon_{{ enable_horizon | bool }}
        - enable_influxdb_{{ enable_influxdb | bool }}
        - enable_ironic_{{ enable_ironic | bool }}
        - enable_iscsid_{{ enable_iscsid | bool }}
        - enable_keystone_{{ enable_keystone | bool }}
        - enable_kuryr_{{ enable_kuryr | bool }}
        - enable_letsencrypt_{{ enable_letsencrypt | bool }}
        - enable_loadbalancer_{{ enable_loadbalancer | bool }}
        - enable_magnum_{{ enable_magnum | bool }}
        - enable_manila_{{ enable_manila | bool }}
        - enable_mariadb_{{ enable_mariadb | bool }}
Kien Nguyen's avatar
Kien Nguyen committed
        - enable_masakari_{{ enable_masakari | bool }}
        - enable_memcached_{{ enable_memcached | bool }}
        - enable_mistral_{{ enable_mistral | bool }}
        - enable_multipathd_{{ enable_multipathd | bool }}
        - enable_neutron_{{ enable_neutron | bool }}
        - enable_nova_{{ enable_nova | bool }}
        - enable_octavia_{{ enable_octavia | bool }}
        - enable_opensearch_{{ enable_opensearch | bool }}
        - enable_opensearch_dashboards_{{ enable_opensearch_dashboards | bool }}
        - enable_openvswitch_{{ enable_openvswitch | bool }}_enable_ovs_dpdk_{{ enable_ovs_dpdk | bool }}
Michal Nasiadka's avatar
Michal Nasiadka committed
        - enable_ovn_{{ enable_ovn | bool }}
        - enable_placement_{{ enable_placement | bool }}
        - enable_prometheus_{{ enable_prometheus | bool }}
        - enable_rabbitmq_{{ enable_rabbitmq | bool }}
        - enable_redis_{{ enable_redis | bool }}
yangshaoxue's avatar
yangshaoxue committed
        - enable_skyline_{{ enable_skyline | bool }}
        - enable_swift_{{ enable_swift | bool }}
        - enable_tacker_{{ enable_tacker | bool }}
        - enable_telegraf_{{ enable_telegraf | bool }}
        - enable_trove_{{ enable_trove | bool }}
jinyuanliu's avatar
jinyuanliu committed
        - enable_venus_{{ enable_venus | bool }}
        - enable_watcher_{{ enable_watcher | bool }}
        - enable_zun_{{ enable_zun | bool }}
  tags: always

- name: Apply role prechecks
  gather_facts: false
  # Apply only when kolla action is 'precheck'.
  hosts: kolla_action_precheck
  max_fail_percentage: >-
    {{ prechecks_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - role: prechecks

- name: Apply role common
  gather_facts: false
  hosts:
    - cron
    - fluentd
    - kolla-logs
    - kolla-toolbox
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ common_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  tags:
    - common
  roles:
    - role: common

- name: Apply role loadbalancer
  gather_facts: false
  hosts:
    - loadbalancer
    - '&enable_loadbalancer_True'
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ loadbalancer_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
    - haproxy
    - keepalived
    - loadbalancer
    - { role: loadbalancer }
  tasks:
    - block:
        - include_role:
            tasks_from: loadbalancer
          tags: aodh
          when: enable_aodh | bool
        - include_role:
            tasks_from: loadbalancer
          tags: barbican
          when: enable_barbican | bool
        - include_role:
            tasks_from: loadbalancer
          tags: blazar
          when: enable_blazar | bool
        - include_role:
            name: ceph-rgw
            tasks_from: loadbalancer
          tags: ceph-rgw
          when: enable_ceph_rgw | bool
            tasks_from: loadbalancer
          tags: cinder
          when: enable_cinder | bool
        - include_role:
            tasks_from: loadbalancer
          tags: cloudkitty
          when: enable_cloudkitty | bool
        - include_role:
            tasks_from: loadbalancer
          tags: cyborg
          when: enable_cyborg | bool
            tasks_from: loadbalancer
          tags: designate
          when: enable_designate | bool
        - include_role:
            name: etcd
            tasks_from: loadbalancer
          tags: etcd
          when: enable_etcd | bool
            tasks_from: loadbalancer
          tags: glance
          when: enable_glance | bool
        - include_role:
            tasks_from: loadbalancer
          tags: gnocchi
          when: enable_gnocchi | bool
        - include_role:
            tasks_from: loadbalancer
          tags: grafana
          when: enable_grafana | bool
        - include_role:
            tasks_from: loadbalancer
          tags: heat
          when: enable_heat | bool
        - include_role:
            tasks_from: loadbalancer
          tags: horizon
          when: enable_horizon | bool
        - include_role:
            tasks_from: loadbalancer
          tags: influxdb
          when: enable_influxdb | bool
        - include_role:
            tasks_from: loadbalancer
          tags: ironic
          when: enable_ironic | bool
        - include_role:
            tasks_from: loadbalancer
          tags: keystone
          when: enable_keystone | bool
        - include_role:
            name: letsencrypt
            tasks_from: loadbalancer
          tags: letsencrypt
          when: enable_letsencrypt | bool
            tasks_from: loadbalancer
          tags: magnum
          when: enable_magnum | bool
        - include_role:
            tasks_from: loadbalancer
          tags: manila
          when: enable_manila | bool
        - include_role:
            tasks_from: loadbalancer
          tags: mariadb
          when: enable_mariadb | bool or enable_external_mariadb_load_balancer | bool
Kien Nguyen's avatar
Kien Nguyen committed
        - include_role:
Kien Nguyen's avatar
Kien Nguyen committed
            tasks_from: loadbalancer
          tags: masakari
          when: enable_masakari | bool
            tasks_from: loadbalancer
          tags: memcached
          when: enable_memcached | bool
        - include_role:
            tasks_from: loadbalancer
          tags: mistral
          when: enable_mistral | bool
        - include_role:
            tasks_from: loadbalancer
          tags: neutron
          when: enable_neutron | bool
        - include_role:
            tasks_from: loadbalancer
          tags: placement
            tasks_from: loadbalancer
          tags:
            - nova
            - nova-api
          when: enable_nova | bool
        - include_role:
            tasks_from: loadbalancer
          tags:
            - nova
            - nova-cell
          when: enable_nova | bool
        - include_role:
            tasks_from: loadbalancer
          tags: octavia
          when: enable_octavia | bool
        - include_role:
            name: opensearch
            tasks_from: loadbalancer
          tags: opensearch
          when: enable_opensearch | bool
            tasks_from: loadbalancer
          tags: prometheus
          when: enable_prometheus | bool
        - include_role:
            tasks_from: loadbalancer
          tags: rabbitmq
          vars:
            role_rabbitmq_cluster_cookie:
            role_rabbitmq_groups:
Michal Nasiadka's avatar
Michal Nasiadka committed
          when: enable_rabbitmq | bool
yangshaoxue's avatar
yangshaoxue committed
        - include_role:
            name: skyline
            tasks_from: loadbalancer
          tags: skyline
          when: enable_skyline | bool
            tasks_from: loadbalancer
          tags: swift
          when: enable_swift | bool
        - include_role:
            tasks_from: loadbalancer
          tags: tacker
          when: enable_tacker | bool
        - include_role:
            tasks_from: loadbalancer
          tags: trove
          when: enable_trove | bool
jinyuanliu's avatar
jinyuanliu committed
        - include_role:
            name: venus
            tasks_from: loadbalancer
          tags: venus
          when: enable_venus | bool
            tasks_from: loadbalancer
          tags: watcher
          when: enable_watcher | bool
        - include_role:
            tasks_from: loadbalancer
          tags: zun
          when: enable_zun | bool
      when:
        - enable_haproxy | bool
        - kolla_action in ['deploy', 'reconfigure', 'upgrade', 'config']

- name: Apply role letsencrypt
  gather_facts: false
  hosts:
    - letsencrypt
    - '&enable_letsencrypt_True'
  serial: '{{ kolla_serial|default("0") }}'
  roles:
    - { role: letsencrypt,
        tags: letsencrypt }

- name: Apply role collectd
  gather_facts: false
  hosts:
    - collectd
    - '&enable_collectd_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ collectd_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: collectd,
        tags: collectd }
- name: Apply role influxdb
  gather_facts: false
  hosts:
    - influxdb
    - '&enable_influxdb_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ influxdb_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
Mathias Ewald's avatar
Mathias Ewald committed
  roles:
    - { role: influxdb,
        tags: influxdb }
- name: Apply role telegraf
  gather_facts: false
Mathias Ewald's avatar
Mathias Ewald committed
    - telegraf
    - '&enable_telegraf_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ telegraf_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
Mathias Ewald's avatar
Mathias Ewald committed
  roles:
    - { role: telegraf,
        tags: telegraf }
Mathias Ewald's avatar
Mathias Ewald committed
- name: Apply role redis
  gather_facts: false
  hosts:
    - redis
    - '&enable_redis_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ redis_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
Mathias Ewald's avatar
Mathias Ewald committed
  roles:
    - { role: redis,
Mathias Ewald's avatar
Mathias Ewald committed

# MariaDB deployment is more complicated than other services, so is covered in
# its own playbook.
- import_playbook: mariadb.yml
- name: Apply role memcached
  gather_facts: false
  hosts:
    - memcached
    - '&enable_memcached_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ memcached_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
Sam Yaple's avatar
Sam Yaple committed
    - { role: memcached,
        tags: [memcache, memcached] }
- name: Apply role prometheus
  gather_facts: false
  hosts:
    - prometheus
    - prometheus-node-exporter
    - prometheus-mysqld-exporter
    - prometheus-memcached-exporter
    - prometheus-cadvisor
    - prometheus-alertmanager
    - prometheus-openstack-exporter
    - prometheus-elasticsearch-exporter
    - prometheus-blackbox-exporter
    - prometheus-libvirt-exporter
    - '&enable_prometheus_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ prometheus_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: prometheus,
        tags: prometheus }
- name: Apply role iscsi
  gather_facts: false
    - '&enable_iscsid_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ iscsid_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
- name: Apply role multipathd
  gather_facts: false
    - '&enable_multipathd_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ multipathd_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: multipathd,
        tags: multipathd }
- import_playbook: rabbitmq.yml
- name: Apply role etcd
  gather_facts: false
  hosts:
    - etcd
    - '&enable_etcd_True'
  max_fail_percentage: >-
    {{ etcd_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
Hui Kang's avatar
Hui Kang committed
  roles:
    - { role: etcd,
Hui Kang's avatar
Hui Kang committed

- name: Apply role keystone
  gather_facts: false
  hosts:
    - keystone
    - '&enable_keystone_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ keystone_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
Fang Fenghua's avatar
Fang Fenghua committed
  roles:
Sam Yaple's avatar
Sam Yaple committed
    - { role: keystone,
        tags: keystone }
- name: Apply role opensearch
  gather_facts: false
  hosts:
    - opensearch
    - '&enable_opensearch_True'
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ opensearch_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
    - { role: opensearch,
        tags: opensearch }
- name: Apply role swift
  gather_facts: false
Sam Yaple's avatar
Sam Yaple committed
    - swift-account-server
    - swift-container-server
    - swift-object-server
    - swift-proxy-server
    - '&enable_swift_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ swift_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
Sam Yaple's avatar
Sam Yaple committed
    - { role: swift,
- name: Apply role ceph-rgw
  gather_facts: false
  hosts:
    # NOTE(mgoddard): This is only used to register Keystone services, and
    # can run on any host running kolla-toolbox.
    - kolla-toolbox
    - '&enable_ceph_rgw_True'
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ ceph_rgw_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: ceph-rgw,
        tags: ceph-rgw }
- name: Apply role glance
  gather_facts: false
Sam Yaple's avatar
Sam Yaple committed
    - glance-api
    - '&enable_glance_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ glance_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
Sam Yaple's avatar
Sam Yaple committed
  roles:
Sam Yaple's avatar
Sam Yaple committed
    - { role: glance,
- name: Apply role ironic
  gather_facts: false
    - ironic-api
    - ironic-conductor
    - ironic-inspector
    - ironic-tftp
    - ironic-http
    - '&enable_ironic_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ ironic_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
- name: Apply role cinder
  gather_facts: false
  hosts:
    - cinder-api
    - cinder-backup
    - cinder-scheduler
    - cinder-volume
    - '&enable_cinder_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ cinder_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: cinder,
- name: Apply role placement
  gather_facts: false
  hosts:
    - placement-api
    - '&enable_placement_True'
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ placement_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: placement,
        tags: placement }
- name: Apply role openvswitch
  gather_facts: false
  hosts:
    - openvswitch
    - '&enable_openvswitch_True_enable_ovs_dpdk_False'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ openvswitch_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: openvswitch,
        tags: openvswitch,
        when: "(enable_openvswitch | bool) and not (enable_ovs_dpdk | bool)"}

- name: Apply role ovs-dpdk
  gather_facts: false
  hosts:
    - openvswitch
    - '&enable_openvswitch_True_enable_ovs_dpdk_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ ovs_dpdk_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: ovs-dpdk,
        tags: ovs-dpdk,
        when: "(enable_openvswitch | bool) and (enable_ovs_dpdk | bool)"}
- name: Apply role ovn-controller
Michal Nasiadka's avatar
Michal Nasiadka committed
  gather_facts: false
  hosts:
    - ovn-controller
Michal Nasiadka's avatar
Michal Nasiadka committed
    - '&enable_ovn_True'
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ ovn_controller_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
Michal Nasiadka's avatar
Michal Nasiadka committed
  roles:
    - { role: ovn-controller,
        tags: [ovn, ovn-controller] }
- name: Apply role ovn-db
    - ovn-nb-db
    - ovn-northd
    - ovn-sb-db
    - '&enable_ovn_True'
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ ovn_db_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
    - { role: ovn-db,
        tags: [ovn, ovn-db] }
Michal Nasiadka's avatar
Michal Nasiadka committed

Martin Hiner's avatar
Martin Hiner committed
# Nova deployment is more complicated than other services, so is covered in its
# own playbook.
- import_playbook: nova.yml

- name: Apply role neutron
  gather_facts: false
    - neutron-server
    - neutron-dhcp-agent
    - neutron-l3-agent
    - ironic-neutron-agent
    - neutron-metadata-agent
Michal Nasiadka's avatar
Michal Nasiadka committed
    - neutron-ovn-metadata-agent
    - neutron-metering-agent
    - neutron-bgp-dragent
    - neutron-infoblox-ipam-agent
    - compute
    - manila-share
    - '&enable_neutron_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ neutron_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
Sam Yaple's avatar
Sam Yaple committed
  roles:
Sam Yaple's avatar
Sam Yaple committed
    - { role: neutron,
        tags: neutron }
- name: Apply role kuryr
  gather_facts: false
    - '&enable_kuryr_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ kuryr_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: kuryr,
- name: Apply role hacluster
  gather_facts: false
  hosts:
    - hacluster
    - hacluster-remote
    - '&enable_hacluster_True'
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ hacluster_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: hacluster,
        tags: hacluster }
- name: Apply role heat
  gather_facts: false
Sam Yaple's avatar
Sam Yaple committed
    - heat-api
    - heat-api-cfn
    - heat-engine
    - '&enable_heat_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ heat_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
Sam Yaple's avatar
Sam Yaple committed
    - { role: heat,
- name: Apply role horizon
  gather_facts: false
    - '&enable_horizon_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ horizon_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
Sam Yaple's avatar
Sam Yaple committed
    - { role: horizon,
        tags: horizon }
- name: Apply role magnum
  gather_facts: false
    - magnum-api
    - magnum-conductor
    - '&enable_magnum_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ magnum_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: magnum,
- name: Apply role mistral
  gather_facts: false
    - mistral-api
    - mistral-engine
    - mistral-executor
    - mistral-event-engine
    - '&enable_mistral_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ mistral_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: mistral,
        tags: mistral }
- name: Apply role manila
  gather_facts: false
    - manila-api
Mauricio Lima's avatar
Mauricio Lima committed
    - manila-data
    - manila-share
    - manila-scheduler
    - '&enable_manila_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ manila_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: manila,
- name: Apply role gnocchi
  gather_facts: false
zhubingbing's avatar
zhubingbing committed
    - gnocchi-api
    - gnocchi-metricd
    - gnocchi-statsd
    - '&enable_gnocchi_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ gnocchi_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
zhubingbing's avatar
zhubingbing committed
  roles:
    - { role: gnocchi,
        tags: gnocchi }
- name: Apply role ceilometer
  gather_facts: false
    - ceilometer-central
    - ceilometer-notification
    - ceilometer-compute
    - ceilometer-ipmi
    - '&enable_ceilometer_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ ceilometer_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: ceilometer,
        tags: ceilometer }
- name: Apply role aodh
  gather_facts: false
    - aodh-api
    - aodh-evaluator
    - aodh-listener
    - aodh-notifier
    - '&enable_aodh_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ aodh_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
zhubingbing's avatar
zhubingbing committed
  roles:
    - { role: aodh,
zhubingbing's avatar
zhubingbing committed

- name: Apply role barbican
  gather_facts: false
zhubingbing's avatar
zhubingbing committed
    - barbican-api
    - barbican-keystone-listener
    - barbican-worker
    - '&enable_barbican_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ barbican_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
zhubingbing's avatar
zhubingbing committed
  roles:
    - { role: barbican,
        tags: barbican }
- name: Apply role cyborg
  gather_facts: false
  hosts:
    - cyborg-api
    - cyborg-agent
    - cyborg-conductor
    - '&enable_cyborg_True'
  serial: '{{ serial|default("0") }}'
  max_fail_percentage: >-
    {{ cyborg_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: cyborg,
- name: Apply role designate
  gather_facts: false
  hosts:
    - designate-api
    - designate-central
    - designate-producer
    - designate-mdns
    - designate-worker
    - designate-sink
    - designate-backend-bind9
    - '&enable_designate_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ designate_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: designate,
        tags: designate }
- name: Apply role trove
  gather_facts: false
zhubingbing's avatar
zhubingbing committed
    - trove-api
    - trove-conductor
    - trove-taskmanager
    - '&enable_trove_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ trove_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
zhubingbing's avatar
zhubingbing committed
  roles:
    - { role: trove,
zhubingbing's avatar
zhubingbing committed

- name: Apply role watcher
  gather_facts: false
    - watcher-api
    - watcher-engine
    - watcher-applier
    - '&enable_watcher_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ watcher_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: watcher,
        tags: watcher }
- name: Apply role grafana
  gather_facts: false
Mathias Ewald's avatar
Mathias Ewald committed
    - grafana
    - '&enable_grafana_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ grafana_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
Mathias Ewald's avatar
Mathias Ewald committed
  roles:
    - { role: grafana,
        tags: grafana }
- name: Apply role cloudkitty
  gather_facts: false
    - cloudkitty-api
    - cloudkitty-processor
    - '&enable_cloudkitty_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ cloudkitty_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: cloudkitty,
        tags: cloudkitty }
- name: Apply role tacker
  gather_facts: false
  hosts:
    - tacker-server
    - tacker-conductor
    - '&enable_tacker_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ tacker_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: tacker,

- name: Apply role octavia
  gather_facts: false
  hosts:
    - octavia-api
    - octavia-health-manager
    - octavia-housekeeping
    - octavia-worker
    - '&enable_octavia_True'
Jeffrey Zhang's avatar
Jeffrey Zhang committed
  serial: '{{ kolla_serial|default("0") }}'
  max_fail_percentage: >-
    {{ octavia_max_fail_percentage |
       default(kolla_max_fail_percentage) |
       default(100) }}
  roles:
    - { role: octavia,
        tags: octavia }
root's avatar
root committed

- name: Apply role zun
  gather_facts: false
  hosts:
    - zun-api
root's avatar
root committed
    - zun-compute
    - zun-cni-daemon