コード例 #1
0
ファイル: astara_hooks.py プロジェクト: akanda/astara-juju
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()
コード例 #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()
コード例 #3
0
ファイル: astara_hooks.py プロジェクト: akanda/astara-juju
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)
コード例 #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)
コード例 #5
0
ファイル: astara_hooks.py プロジェクト: akanda/astara-juju
def install():
    apt_update(fatal=True)
    apt_install(determine_packages(), fatal=True)
    if git_install_requested():
        git_install(config('openstack-origin-git'))
コード例 #6
0
def install():
    apt_update(fatal=True)
    apt_install(determine_packages(), fatal=True)
    if git_install_requested():
        git_install(config('openstack-origin-git'))