示例#1
0
def install_utils(admin_user='******'):
    """ Installs utilities on the target VPS """

    print(blue('set target user: {}'.format(admin_user)))
    env.user = admin_user

    print(blue('curl, htop, git'))
    utils.deb.install('curl')
    utils.deb.install('htop')
    utils.deb.install('git')

    print(blue('github and bitbucket ssh handshake'))
    ssh.services_handshake()

    print(blue('zsh installation'))
    zsh.install()

    print(blue('nodejs installation'))
    node.install()

    print(blue('vim installation'))
    vim.install()

    print(blue('postgreSQL installation and role creation'))
    postgresql.install()
    postgresql.create_user()
示例#2
0
def install_utils(admin_user='******'):
    """ Installs utilities on the target VPS """

    print(blue('set target user: {}'.format(admin_user)))
    env.user = admin_user

    print(blue('curl, htop, git, tig'))

    if platform.system().lower() != 'darwin':
        utils.os_commands.install('curl')
        utils.os_commands.install('git')

    utils.os_commands.install('htop')
    utils.os_commands.install('tig')

    print(blue('github and bitbucket ssh handshake'))
    ssh.services_handshake()

    print(blue('zsh installation'))
    zsh.install()

    print(blue('nodejs installation'))
    node.install()

    print(blue('vim installation'))
    vim.install()

    print(blue('postgreSQL installation and role creation'))
    postgresql.install()

    if platform.system().lower() != 'darwin':
        postgresql.create_user()
示例#3
0
def initial_setup():
    """ Installs basic utilities """
    print(green('curl, htop, git, tig'))
    utils.deb.install('curl')
    utils.deb.install('htop')
    utils.deb.install('git')
    utils.deb.install('tig')

    print(green('github and bitbucket ssh handshake'))
    ssh.services_handshake()

    print(green('zsh installation'))
    zsh.install()

    print(green('vim installation'))
    vim.install()
示例#4
0
def wordpress_setup():
    """ Installs utilities on the target VPS with a Wordpress flavor"""

    print(blue('initial setup'))
    init()

    print(blue('github and bitbucket ssh handshake'))
    ssh.services_handshake()

    print(blue('zsh installation'))
    zsh.install()

    print(blue('vim installation'))
    vim.install()

    print(blue('git', 'curl, htop'))
    utils.deb.install('git')
    utils.deb.install('curl')
    utils.deb.install('htop')
示例#5
0
def wordpress_setup():
    """ Installs utilities on the target VPS with a Wordpress flavor"""

    print(blue('initial setup'))
    init()

    print(blue('github and bitbucket ssh handshake'))
    ssh.services_handshake()

    print(blue('zsh installation'))
    zsh.install()

    print(blue('vim installation'))
    vim.install()

    print(blue('git', 'curl, htop'))
    utils.deb.install('git')
    utils.deb.install('curl')
    utils.deb.install('htop')