Ejemplo n.º 1
0
def config_changed():
    global CONFIGS

    if git_install_requested():
        if config_value_changed('openstack-origin-git'):
            git_install(config('openstack-origin-git'))

    CONFIGS.write_all()
Ejemplo n.º 2
0
def config_changed():
    global CONFIGS

    if git_install_requested():
        if config_value_changed('openstack-origin-git'):
            git_install(config('openstack-origin-git'))

    CONFIGS.write_all()
Ejemplo n.º 3
0
def install():
    apt_update(fatal=True)
    apt_install(determine_packages(), fatal=True)
    if git_install_requested():
        git_install(config('openstack-origin-git'))

        # NOTE(adam_g):
        # something gets screwy with the requests packages being pulled in
        # as python-requests-whl /w python-pip-whl and via the UCA, causing
        # glanceclient usage in the charm to break.  Purge it here and let it
        # be reinstalled during next hook exec, that seems to fix the issue?
        cmd = ['dpkg', '-P', 'python-pip-whl', 'python-requests-whl',
               'python-pip']
        subprocess.check_call(cmd)
Ejemplo n.º 4
0
def install():
    apt_update(fatal=True)
    apt_install(determine_packages(), fatal=True)
    if git_install_requested():
        git_install(config('openstack-origin-git'))

        # NOTE(adam_g):
        # something gets screwy with the requests packages being pulled in
        # as python-requests-whl /w python-pip-whl and via the UCA, causing
        # glanceclient usage in the charm to break.  Purge it here and let it
        # be reinstalled during next hook exec, that seems to fix the issue?
        cmd = [
            'dpkg', '-P', 'python-pip-whl', 'python-requests-whl', 'python-pip'
        ]
        subprocess.check_call(cmd)
Ejemplo n.º 5
0
def install():
    apt_update(fatal=True)
    apt_install(determine_packages(), fatal=True)
    if git_install_requested():
        git_install(config('openstack-origin-git'))
Ejemplo n.º 6
0
def install():
    apt_update(fatal=True)
    apt_install(determine_packages(), fatal=True)
    if git_install_requested():
        git_install(config('openstack-origin-git'))