Skip to main content

fabric setup scripts and fabric utils library

Project description

Fabric tasks in order to set up and maintain configurations, software installations and other things on a local or remote linux system (most functionality for Debian/Ubuntu).

“dotfiles on steroids”

Usage

fabsetup is a `fabric <http://www.fabfile.org/>`__ script.

# task infos

## list all tasks: '-l'
fabsetup -l

## show details: '-d'
fabsetup -d new_addon


# run tasks

fabsetup setup.regex_repl

## on your local host:
fabsetup setup.pencil3 -H localhost

## remote host:
fabsetup up -H example.com

`Setup-Howtos <./howtos>`__:

Known fabsetup-addons

Please contribute: Create your own fabsetup-addon and make a pull request which adds your fabsetup-addon to the known_pip_addons in fabsetup/addons.py and to this README.md.

Installation

As a pypi package with command pip (recommended way):

pip install fabsetup

# install addon, eg. fabsetup-theno-termdown
pip install fabsetup-theno-termdown

Update:

pip install --upgrade fabsetup

# update addon (also updates fabsetup)
pip install --upgrade fabsetup-theno-termdown

Install without superuser privileges:

pip install --user fabsetup

When running with --user, pip installs the command fabsetup at ~/.local/bin. Assure that ~/.local/bin is set in your $PATH environment variable.

Uninstall:

pip uninstall --yes fabsetup
pip uninstall --yes fabsetup-addon-theno

You also can clone the github repository instead of using pip install:

# install requirements
sudo apt-get install  git  fabric
pip install --user utlz

git clone  https://github.com/theno/fabsetup.git  ~/.fabsetup

# from ~/.fabsetup dir use `fab` instead of `fabsetup`
cd ~/.fabsetup
fab -l

Development

Devel commands:

# save changes
git commit -am 'I describe my changes'

# upload to github
git push origin master

# update version number in fabsetup/_version.py

# create and publish package at pypi
fab -f fabfile-dev.py  pypi

# clean up
fab -f fabfile-dev.py  clean

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fabsetup-0.7.10.tar.gz (130.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page