예제 #1
0
def do():
    import setup_utilities
    setup_utilities.log("Installing npm (by installing nodejs)...")
    import subprocess
    subprocess.call(["sudo", "apt-get", "update"])
    setup_utilities.apt_install("curl")
    subprocess.call(
        "curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -",
        shell=True)
    subprocess.call(["sudo", "apt-get", "install", "-y", "nodejs"])
    setup_utilities.log("Successfully installed npm!")
def do():
    import setup_utilities
    answer = setup_utilities.query_yes_no(
        "Do you want to install the php ldap manager (phpldapadmin) and all required web server and PHP dependencies?"
    )
    if answer == False:
        setup_utilities.log("phpldapadmin will not be installed!")
        return
    setup_utilities.log("phpldapadmin will be installed")
    setup_utilities.apt_install("phpldapadmin")
    setup_utilities.log("Sucessfully installed phpldapadmin!")
예제 #3
0
def do():
    import setup_utilities

    setup_utilities.log("Installing virtualenv in /venv ...")

    import platform
    main_version = int(platform.linux_distribution()[1].split(".")[1])
    virtual_env_package = "python-virtualenv" if (
        main_version < 16) else "virtualenv"

    setup_utilities.apt_install(virtual_env_package)
예제 #4
0
def do():
    import setup_utilities

    setup_utilities.log("Installing ldap-python prerequisites system-wide...")

    apt_packages = ["libsasl2-dev", "python-dev", "libldap2-dev", "libssl-dev", "slapd", "ldap-utils", "phpldapadmin"]
    for package in apt_packages:
        setup_utilities.apt_install(package)

    setup_utilities.log("Successfully installed ldap-python prerequisites system-wide")

    
예제 #5
0
def do():
    import setup_utilities
    setup_utilities.log("Installing mysql server...")
    setup_utilities.apt_install("mysql-server")
    setup_utilities.log("Successfully installed mysql server!")
def do():
    import setup_utilities
    setup_utilities.log("Installing mysql for python (python-mysqldb)...")
    setup_utilities.apt_install("python-mysqldb")
    setup_utilities.log("Successfully installed mysql for python!")
예제 #7
0
def do():
    import setup_utilities
    setup_utilities.log("Installing java (default-jre)...")
    setup_utilities.apt_install("default-jre")
    setup_utilities.log("Successfully installed java!")
def do():
    import setup_utilities
    setup_utilities.log("Installing zookeeper...")
    setup_utilities.apt_install("zookeeperd")
    setup_utilities.log("Successfully installed zookeeper!")