diff options
author | baigk <baiguoku@huawei.com> | 2015-09-19 11:07:44 +0800 |
---|---|---|
committer | baigk <baiguoku@huawei.com> | 2015-09-19 16:57:18 +0800 |
commit | 95e055a4582070548cb1632934fa18af7be76ced (patch) | |
tree | 5e93d728bc3dc2e12d4794978ebf0fad477ac76f /deploy/client.py | |
parent | 952e99a21501899b5e2615443fd1518b9d316b2e (diff) |
support to assign ppa name when deploy openstack
JIRA: COMPASS-63
Change-Id: Ifdaa8a82e849291c1b5d5a48f9f678f5bb417a89
Signed-off-by: baigk <baiguoku@huawei.com>
Diffstat (limited to 'deploy/client.py')
-rw-r--r-- | deploy/client.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deploy/client.py b/deploy/client.py index 48602c42..33d987ee 100644 --- a/deploy/client.py +++ b/deploy/client.py @@ -213,6 +213,9 @@ opts = [ cfg.StrOpt('cluster_prv_vip', help='cluster ip address', default=''), + cfg.StrOpt('repo_name', + help='repo name', + default=''), ] CONF.register_cli_opts(opts) @@ -414,6 +417,7 @@ class CompassClient(object): http_proxy = CONF.http_proxy https_proxy = CONF.https_proxy local_repo_url = CONF.local_repo_url + repo_name = CONF.repo_name if not https_proxy and http_proxy: https_proxy = http_proxy @@ -453,7 +457,6 @@ class CompassClient(object): if not default_gateway: raise Exception('default gateway is not defined') - general_config = { 'language': language, 'timezone': timezone, @@ -474,6 +477,8 @@ class CompassClient(object): general_config['search_path'] = search_path if local_repo_url: general_config['local_repo'] = local_repo_url + if repo_name: + general_config['repo_name'] = repo_name os_config["general"] = general_config |