Nuage neutron plugin ansible changes
Depends-On: I75a29f710aa65c13c3067c06c02b951e44a38161 Change-Id: I7903ae731ab74a0993d741852d424ebee481db0d
This commit is contained in:
committed by
Jesse Pretorius (odyssey4me)
parent
7b7820fc66
commit
759d043f2b
@@ -121,6 +121,10 @@ neutron_plugins:
|
|||||||
plugin_core: networking_plumgrid.neutron.plugins.plugin.NeutronPluginPLUMgridV2
|
plugin_core: networking_plumgrid.neutron.plugins.plugin.NeutronPluginPLUMgridV2
|
||||||
plugin_ini: plugins/plumgrid/plumgrid.ini
|
plugin_ini: plugins/plumgrid/plumgrid.ini
|
||||||
plugin_conf_ini_overrides: "{{ neutron_plumgrid_conf_ini_overrides }}"
|
plugin_conf_ini_overrides: "{{ neutron_plumgrid_conf_ini_overrides }}"
|
||||||
|
nuage:
|
||||||
|
plugin_core: neutron.plugins.nuage.plugin.NuagePlugin
|
||||||
|
plugin_ini: plugins/nuage/nuage.ini
|
||||||
|
plugin_conf_ini_overrides: "{{ neutron_nuage_conf_ini_overrides }}"
|
||||||
|
|
||||||
neutron_services:
|
neutron_services:
|
||||||
neutron-dhcp-agent:
|
neutron-dhcp-agent:
|
||||||
@@ -407,11 +411,17 @@ neutron_pip_packages:
|
|||||||
neutron_optional_plumgrid_pip_packages:
|
neutron_optional_plumgrid_pip_packages:
|
||||||
- networking-plumgrid==2015.2.1.1
|
- networking-plumgrid==2015.2.1.1
|
||||||
|
|
||||||
|
neutron_proprietary_nuage_pip_packages:
|
||||||
|
- nuage-openstack-neutron
|
||||||
|
- nuage-openstack-neutronclient
|
||||||
|
- nuagenetlib
|
||||||
|
|
||||||
## Tunable overrides
|
## Tunable overrides
|
||||||
neutron_neutron_conf_overrides: {}
|
neutron_neutron_conf_overrides: {}
|
||||||
neutron_ml2_conf_ini_overrides: {}
|
neutron_ml2_conf_ini_overrides: {}
|
||||||
neutron_plumgrid_conf_ini_overrides: {}
|
neutron_plumgrid_conf_ini_overrides: {}
|
||||||
neutron_plumlib_ini_overrides: {}
|
neutron_plumlib_ini_overrides: {}
|
||||||
|
neutron_nuage_conf_ini_overrides: {}
|
||||||
neutron_dhcp_agent_ini_overrides: {}
|
neutron_dhcp_agent_ini_overrides: {}
|
||||||
neutron_api_paste_ini_overrides: {}
|
neutron_api_paste_ini_overrides: {}
|
||||||
neutron_rootwrap_conf_overrides: {}
|
neutron_rootwrap_conf_overrides: {}
|
||||||
|
|||||||
@@ -134,6 +134,11 @@
|
|||||||
include: plumgrid_config.yml
|
include: plumgrid_config.yml
|
||||||
when: neutron_plugin_type == 'plumgrid'
|
when: neutron_plugin_type == 'plumgrid'
|
||||||
|
|
||||||
|
- name: Setup Nuage neutron config
|
||||||
|
include: nuage_neutron_config.yml
|
||||||
|
when:
|
||||||
|
- neutron_plugin_type == 'nuage'
|
||||||
|
|
||||||
- name: Get neutron command path
|
- name: Get neutron command path
|
||||||
command: which neutron
|
command: which neutron
|
||||||
register: neutron_command_path
|
register: neutron_command_path
|
||||||
|
|||||||
45
tasks/nuage_neutron_config.yml
Normal file
45
tasks/nuage_neutron_config.yml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
# Copyright 2016 Nuage Networks
|
||||||
|
#
|
||||||
|
# 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: Install nuage neutron pip packages (venv)
|
||||||
|
pip:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
virtualenv: "{{ neutron_venv_bin | dirname }}"
|
||||||
|
virtualenv_site_packages: "no"
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
with_items:
|
||||||
|
- "{{ neutron_proprietary_nuage_pip_packages }}"
|
||||||
|
when:
|
||||||
|
- neutron_venv_enabled | bool
|
||||||
|
- inventory_hostname in groups[neutron_services['neutron-server']['group']]
|
||||||
|
tags:
|
||||||
|
- neutron-install
|
||||||
|
- neutron-pip-packages
|
||||||
|
|
||||||
|
- name: Install nuage neutron pip packages (no venv)
|
||||||
|
pip:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
with_items:
|
||||||
|
- "{{ neutron_proprietary_nuage_pip_packages }}"
|
||||||
|
when:
|
||||||
|
- not neutron_venv_enabled | bool
|
||||||
|
- inventory_hostname in groups[neutron_services['neutron-server']['group']]
|
||||||
|
tags:
|
||||||
|
- neutron-install
|
||||||
|
- neutron-pip-packages
|
||||||
@@ -19,7 +19,7 @@ vlan_transparent = False
|
|||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
core_plugin = {{ neutron_plugin_core }}
|
core_plugin = {{ neutron_plugin_core }}
|
||||||
{% if neutron_plugin_type != 'plumgrid' %}
|
{% if (neutron_plugin_type != 'plumgrid' and neutron_plugin_type != 'nuage') %}
|
||||||
service_plugins = {{ neutron_plugin_loaded_base }}
|
service_plugins = {{ neutron_plugin_loaded_base }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
19
templates/plugins/nuage/nuage.ini.j2
Normal file
19
templates/plugins/nuage/nuage.ini.j2
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#Config file for Nuage Neutron Plugin
|
||||||
|
|
||||||
|
[RESTPROXY]
|
||||||
|
# Desired Name of VSD Organization/Enterprise to use when net-partition
|
||||||
|
# is not specified
|
||||||
|
default_net_partition_name = {{ nuage_net_partition_name }}
|
||||||
|
# Hostname or IP address and port for connection to VSD server
|
||||||
|
server = {{ nuage_vsd_ip }}
|
||||||
|
# VSD Username and password for OpenStack plugin connection
|
||||||
|
# User must belong to CSP Root group and CSP CMS group
|
||||||
|
serverauth = {{ nuage_vsd_username }}:{{ nuage_vsd_password }}
|
||||||
|
|
||||||
|
### Do not change the below options for standard installs
|
||||||
|
organization ={{ nuage_vsd_organization }}
|
||||||
|
auth_resource = /me
|
||||||
|
serverssl = True
|
||||||
|
base_uri = /nuage/api/{{ nuage_base_uri_version }}
|
||||||
|
cms_id = {{ nuage_cms_id }}
|
||||||
|
nuage_pat = default_disabled
|
||||||
Reference in New Issue
Block a user