Added config networking-build

Signed-off-by: Junaid Ali <junaidali@plumgrid.com>
This commit is contained in:
Junaid Ali 2016-08-20 11:14:52 -04:00
parent 62d25d9be8
commit 3afd758f99
2 changed files with 15 additions and 3 deletions

View File

@ -15,7 +15,12 @@ options:
default: 'latest' default: 'latest'
type: string type: string
description: | description: |
Provide the build version of PLUMgrid packages that needs to be installed Provide the build version of plumgrid-pythonlib package that needs to be installed
networking-build:
default: 'latest'
type: string
description: |
Provide the build version of networking-plumgrid package that needs to be installed
networking-plumgrid-version: networking-plumgrid-version:
default: null default: null
type: string type: string

View File

@ -28,7 +28,8 @@ from charmhelpers.contrib.openstack.utils import (
TEMPLATES = 'templates/' TEMPLATES = 'templates/'
PG_PACKAGES = [ PG_PACKAGES = [
'plumgrid-pythonlib' 'plumgrid-pythonlib',
'networking-plumgrid'
] ]
NEUTRON_CONF_DIR = "/etc/neutron" NEUTRON_CONF_DIR = "/etc/neutron"
@ -86,8 +87,14 @@ def determine_packages():
enable PLUMgrid in Openstack. enable PLUMgrid in Openstack.
''' '''
pkgs = [] pkgs = []
tag = config('plumgrid-build') tag = 'latest'
for pkg in PG_PACKAGES: for pkg in PG_PACKAGES:
if pkg == 'plumgrid-pythonlib':
tag = config('plumgrid-build')
elif (pkg == 'networking-plumgrid' and
config('enable-deb-networking-install')):
tag = config('networking-build')
if tag == 'latest': if tag == 'latest':
pkgs.append(pkg) pkgs.append(pkg)
else: else: