Пример #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")
Пример #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")
Пример #3
0
def installation():
    core.package_repository("ppa:chris-lea/node.js")
    core.package("nodejs")
Пример #4
0
def installation():
    core.package_repository("ppa:ubuntu-on-rails")
    core.package("ruby1.9.2")
    core.package("rubygems")
    gem("foreman")
Пример #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")
Пример #6
0
def installation():
    core.package_repository("ppa:pitti/postgresql")
    core.package("postgresql-9.1")
    core.package("libpq-dev")
Пример #7
0
def installation():
    core.package_repository("ppa:ubuntu-on-rails")
    core.package("ruby1.9.2")
    core.package("rubygems")
    gem("foreman")