c03c932c9b
Avoid assuming that provider or deployment specific groups are defined in inventory by making use of the group names defined in the 'neutron_services' var and checking group membership through a host's group_names instead of Ansible's groups dictionary. Change-Id: I66b7c639494d98fdb3baa52fe56c670e32dea3ce
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
---
|
|
# Copyright 2014, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
galaxy_info:
|
|
author: rcbops
|
|
description: Installation and setup of neutron
|
|
company: Rackspace
|
|
license: Apache2
|
|
min_ansible_version: 2.2
|
|
platforms:
|
|
- name: Ubuntu
|
|
versions:
|
|
- xenial
|
|
- name: EL
|
|
versions:
|
|
- 7
|
|
- name: opensuse
|
|
versions:
|
|
- 42.1
|
|
- 42.2
|
|
- 42.3
|
|
categories:
|
|
- cloud
|
|
- python
|
|
- neutron
|
|
- development
|
|
- openstack
|
|
dependencies:
|
|
- pip_install
|
|
- apt_package_pinning
|
|
- galera_client
|
|
- openstack_openrc
|
|
- role: etcd
|
|
etcd_install_type: proxy
|
|
when:
|
|
- "{{ neutron_plugin_type in ['ml2.calico', 'ml2.dragonflow'] }}"
|
|
- "{{ group_names | intersect([
|
|
neutron_services['calico-dhcp-agent']['group'],
|
|
neutron_services['calico-felix']['group'],
|
|
neutron_services['dragonflow-controller-agent']['group'],
|
|
neutron_services['neutron-server']['group']
|
|
]) | length > 0
|
|
}}"
|
|
- role: opendaylight
|
|
install_method: "{{ opendaylight_install_method }}"
|
|
extra_features: "{{ opendaylight_extra_features }}"
|
|
when:
|
|
- neutron_plugin_type == "ml2.opendaylight"
|
|
- "'opendaylight' in group_names"
|