Skip to content

Instantly share code, notes, and snippets.

@odyssey4me
Last active December 20, 2017 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odyssey4me/544e1455000c50027ac32c73d48b67df to your computer and use it in GitHub Desktop.
Save odyssey4me/544e1455000c50027ac32c73d48b67df to your computer and use it in GitHub Desktop.
Suggested approach for ODL/SFC package install
---
# Copyright 2017, Ericsson AB
#
# 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.
- name: Set the packages to install
set_fact:
neutron_optional_combined_pip_packages: >-
{%- set packages = neutron_optional_opendaylight_pip_packages %}
{%- if 'networking_sfc.services.sfc.plugin.SfcPlugin' in neutron_plugin_base %}
{%- set _ = packages.extend(neutron_sfc_opendaylight_pip_packages) %}
{%- endif %}
{{- packages }}
- name: Install OpenDaylight pip packages
pip:
name: "{{ neutron_optional_combined_pip_packages }}"
state: "{{ neutron_pip_package_state }}"
virtualenv: "{{ neutron_bin | dirname }}"
virtualenv_site_packages: "no"
extra_args: >-
{{ neutron_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
{{ pip_install_options | default('') }}
register: install_packages
until: install_packages|success
retries: 5
delay: 2
tags:
- opendaylight-install
- opendaylight-pip-packages
- include: setup_ovs_opendaylight.yml
when: neutron_services['neutron-server']['group'] not in group_names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment