Beispiel #1
0
def installation():
    core.package("python-software-properties")
    core.package("python-setuptools")
    core.package("python-dev")

    core.package_repository("ppa:fkrull/deadsnakes")
    core.package("python2.7")

    core.remote_file("/tmp/distribute_setup.py",
        source="http://python-distribute.org/distribute_setup.py",
        mode=0644)

    # Python 2.7
    sudo("python2.7 /tmp/distribute_setup.py")
    sudo("easy_install-2.7 pip")
    sudo("pip-2.7 install virtualenv")

    # Python 2.6
    sudo("easy_install-2.6 pip")
    sudo("pip-2.6 install virtualenv")
Beispiel #2
0
def installation():
    core.package("python-software-properties")
    core.package("python-setuptools")
    core.package("python-dev")

    core.package_repository("ppa:fkrull/deadsnakes")
    core.package("python2.7")

    core.remote_file("/tmp/distribute_setup.py",
                     source="http://python-distribute.org/distribute_setup.py",
                     mode=0644)

    # Python 2.7
    sudo("python2.7 /tmp/distribute_setup.py")
    sudo("easy_install-2.7 pip")
    sudo("pip-2.7 install virtualenv")

    # Python 2.6
    sudo("easy_install-2.6 pip")
    sudo("pip-2.6 install virtualenv")
Beispiel #3
0
def installation():
    core.package_repository("ppa:chris-lea/node.js")
    core.package("nodejs")
Beispiel #4
0
def installation():
    core.package_repository("ppa:ubuntu-on-rails")
    core.package("ruby1.9.2")
    core.package("rubygems")
    gem("foreman")
Beispiel #5
0
def installation():
    core.package_repository("ppa:nginx/stable")
    core.package("nginx")
    if files.exists("/etc/nginx/sites-enabled/default"):
        sudo("rm /etc/nginx/sites-enabled/default")
Beispiel #6
0
def installation():
    core.package_repository("ppa:pitti/postgresql")
    core.package("postgresql-9.1")
    core.package("libpq-dev")
Beispiel #7
0
def installation():
    core.package_repository("ppa:ubuntu-on-rails")
    core.package("ruby1.9.2")
    core.package("rubygems")
    gem("foreman")