~openstack-charmers/charms/trusty/nova-cloud-controller/trunk

« back to all changes in this revision

Viewing changes to hooks/nova_cc_utils.py

  • Committer: Corey Bryant
  • Date: 2016-06-20 12:37:43 UTC
  • Revision ID: corey.bryant@canonical.com-20160620123743-0oyrnfjrzy1p1sx8
Add defaults for openstack-origin-git config option

openstack-origin-git currently only supports YAML that specifies
the git repositories to deploy from.

This adds support for default openstack-origin-git values. The
default values supported are: icehouse, kilo, liberty, mitaka,
and master.  For example: openstack-origin-git=master

Change-Id: I6b737272deed067c2f71dbd36b201aea884265ee

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    get_os_codename_install_source,
31
31
    git_install_requested,
32
32
    git_clone_and_install,
 
33
    git_default_repos,
33
34
    git_src_dir,
34
35
    git_pip_venv_dir,
35
36
    git_yaml_value,
937
938
    """Perform setup, and install git repos specified in yaml parameter."""
938
939
    if git_install_requested():
939
940
        git_pre_install()
 
941
        projects_yaml = git_default_repos(projects_yaml)
940
942
        git_clone_and_install(projects_yaml, core_project='nova')
941
943
        git_post_install(projects_yaml)
942
944