d8fe45b3d8
Having tagged plays allows us to easily run a subset of the plays for a command, and perform targeted operations with less risk of unintended consequences. The tags are typically named after the playbook, although some of the overcloud playbooks have been tagged without an overcloud- prefix.
14 lines
505 B
YAML
14 lines
505 B
YAML
---
|
|
- hosts: controllers
|
|
tags:
|
|
- swift
|
|
roles:
|
|
- role: swift-setup
|
|
swift_image: "kolla/{{ kolla_base_distro }}-{{ kolla_install_type }}-swift-base:{{ kolla_openstack_release }}"
|
|
swift_ring_build_host: "{{ groups['controllers'][0] }}"
|
|
# ID of the region for this Swift service.
|
|
swift_region: 1
|
|
# ID of the zone for this Swift service.
|
|
swift_zone: "{{ groups['controllers'].index(inventory_hostname) % swift_num_zones }}"
|
|
when: kolla_enable_swift | bool
|