Add ECMP support config for PGLib

As a part of the Neutron ECMP support being added in the PLUMgrid plugin,
the new CLI for PGLib requires a configuration file pgrc
which is installed under /etc/neutron/plugins/plumgrid

Change-Id: I8a492655ff53099057e4648c9c835cd7ae4d0d2a
Signed-off-by: Javeria Khan <javeriak@plumgrid.com>
(cherry picked from commit c7dc53bbe2)
This commit is contained in:
Javeria Khan 2016-01-19 09:30:38 -08:00
parent 87be7b8a58
commit b914246649
2 changed files with 18 additions and 0 deletions

View File

@ -23,6 +23,15 @@
tags:
- neutron_config
- name: Place pgrc file
template:
src: plugins/plumgrid/pgrc
dest: /etc/neutron/plugins/plumgrid/pgrc
owner: "{{ neutron_system_user_name }}"
group: "{{ neutron_system_group_name }}"
tags:
- neutron_config
- name: Install networking-plumgrid
pip:
name: "{{ item }}"

View File

@ -0,0 +1,9 @@
# {{ ansible_managed }}
#!/bin/sh
export os_auth_url="{{ keystone_service_adminuri }}/v3"
export os_admin_user="{{ keystone_admin_user_name }}"
export os_admin_tenant="{{ keystone_admin_tenant_name }}"
export os_admin_password="{{ keystone_auth_admin_password }}"
export pg_virtual_ip="{{ pg_vip }}"
export pg_username="{{ pg_username }}"
export pg_password="{{ pg_password }}"