Merge "Setup db/mq/service during scheduler run"
This commit is contained in:
commit
9c170cf1f5
@ -148,7 +148,7 @@
|
||||
|
||||
- import_tasks: cinder_db_sync.yml
|
||||
when:
|
||||
- _cinder_is_first_play_host
|
||||
- _cinder_is_first_api_play_host
|
||||
tags:
|
||||
- cinder-config
|
||||
|
||||
|
@ -13,7 +13,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
_cinder_is_first_play_host: "{{ (cinder_services['cinder-api']['group'] in group_names and inventory_hostname == (groups[cinder_services['cinder-api']['group']] | intersect(ansible_play_hosts)) | first) | bool }}"
|
||||
_cinder_is_first_api_play_host: "{{ (cinder_services['cinder-api']['group'] in group_names and inventory_hostname == (groups[cinder_services['cinder-api']['group']] | intersect(ansible_play_hosts)) | first) | bool }}"
|
||||
_cinder_is_first_play_host: "{{ (cinder_services['cinder-scheduler']['group'] in group_names and inventory_hostname == (groups[cinder_services['cinder-scheduler']['group']] | intersect(ansible_play_hosts)) | first) | bool }}"
|
||||
_cinder_is_last_play_host: "{{ (cinder_services['cinder-api']['group'] in group_names and inventory_hostname == (groups[cinder_services['cinder-api']['group']] | intersect(ansible_play_hosts)) | last) | bool }}"
|
||||
|
||||
_cinder_rootwrap_conf_overrides:
|
||||
|
Loading…
Reference in New Issue
Block a user