distro Package

distro Package

fabric_colors.distro.distro[source]

Usage: fab -R all distro. Determine the distro of given target host(s).

server Module

fabric_colors.distro.server.chk_exists[source]

Usage: fab -R dev server.chk_exists:path. Returns 1 or empty string.

fabric_colors.distro.server.get_ownership[source]

Usage: fab -R all server.get_ownership. Given a path, and the target node, return owner and group for that directory

fabric_colors.distro.server.groupadd[source]

Usage: fab -R dev server.groupadd:sudo. Adds the given group.

fabric_colors.distro.server.groups[source]

Usage: fab -R dev server.groups. Returns available groups.

fabric_colors.distro.server.initializers[source]

Shows us which are the services that will be initialized automatically after a reboot.

fabric_colors.distro.server.setup[source]

Usage: fab -R all server.setup. Runs all scripts as given username, in sudo mode, on the target server.

fabric_colors.distro.server.setup_base[source]

Usage: fab -R dev server.setup_base. Installs the base requirements.

fabric_colors.distro.server.setup_python[source]

Usage: fab -R all server.setup_python. Sets up the python environment

fabric_colors.distro.server.show_sudo_users_and_groups(ug, nopasswd)[source]

Helper function that prints out users and groups with sudo (or no passwd sudo) rights.

fabric_colors.distro.server.ssh_copy_id[source]

Usage: fab -R all server.ssh_copy_id. Add local machine’s public key to target’s username

fabric_colors.distro.server.sudo_users_and_groups[source]

Usage: fab -R dev server.sudo_users_and_groups:nopasswd. nopasswd(optional)=True/False.

fabric_colors.distro.server.useradd[source]

Usage: fab -R all server.useradd:web. Create user given the user name & target machine.

fabric_colors.distro.server.userchk[source]

Usage: fab -R all server.userchk:web. Check if the given user name is available on the given target host(s).

fabric_colors.distro.server.userdel[source]

Usage: fab -R all server.userdel:web. Delete user & its home directory given the user name & target machine.

fabric_colors.distro.server.usersudo[source]

Usage: fab -R dev server.usersudo:user,sudogroup. Adds deploying user to the given sudo group.

fabric_colors.distro.server.visudo[source]

Usage: fab -R all server.visudo:sudogroup. Enable the given sudo group in /etc/sudoers programmatically.

This is the same as typing visudo and manually commenting out a commented line for the group so it has ALL=(ALL) ALL access rights, i.e. sudo rights.

Table Of Contents

Previous topic

deploy Package

Next topic

arch Package

This Page