Esempio n. 1
0
def install_s3cmd():
    """ Install s3cmd on the server if it's not installed already """
    if not find_executable('s3cmd') == None:
        return True

    if platform() in ['ubuntu', 'debian']:
        print "Installing s3cmd on the remote server"
        sudo('apt-get -y -q install s3cmd')
        return True

    return False
Esempio n. 2
0
def install_s3cmd():
    """ Install s3cmd on the server if it's not installed already """
    if not find_executable('s3cmd') == None:
        return True

    if platform() in ['ubuntu', 'debian']:
        print "Installing s3cmd on the remote server"
        sudo('apt-get -y -q install s3cmd')
        return True

    return False
Esempio n. 3
0
def ohai_info():
    if find_executable('ohai') == None:
        raise Exception("Chef client not installed on the remote server")
    ohai_data = sudo('ohai', quiet=True)
    return json.loads(ohai_data)
Esempio n. 4
0
 def check_dependencies():
     if find_executable('s3cmd') == None:
         raise Exception("s3cmd executable not found on the remote server")
Esempio n. 5
0
def ohai_info():
    if find_executable('ohai') == None:
        raise Exception("Chef client not installed on the remote server")
    ohai_data = sudo('ohai', quiet=True)
    return json.loads(ohai_data)
Esempio n. 6
0
 def check_dependencies():
     if find_executable('s3cmd') == None:
         raise Exception("s3cmd executable not found on the remote server")