Added config networking-build
Signed-off-by: Junaid Ali <junaidali@plumgrid.com>
This commit is contained in:
parent
62d25d9be8
commit
3afd758f99
@ -15,7 +15,12 @@ options:
|
||||
default: 'latest'
|
||||
type: string
|
||||
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:
|
||||
default: null
|
||||
type: string
|
||||
|
@ -28,7 +28,8 @@ from charmhelpers.contrib.openstack.utils import (
|
||||
TEMPLATES = 'templates/'
|
||||
|
||||
PG_PACKAGES = [
|
||||
'plumgrid-pythonlib'
|
||||
'plumgrid-pythonlib',
|
||||
'networking-plumgrid'
|
||||
]
|
||||
|
||||
NEUTRON_CONF_DIR = "/etc/neutron"
|
||||
@ -86,8 +87,14 @@ def determine_packages():
|
||||
enable PLUMgrid in Openstack.
|
||||
'''
|
||||
pkgs = []
|
||||
tag = config('plumgrid-build')
|
||||
tag = 'latest'
|
||||
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':
|
||||
pkgs.append(pkg)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user