You are here: Home Articles Deployment using fabric

Deployment using fabric

Deployment using a very simple and lean mechanism (Python) on a ssh-enabled cluster

This looks very useful to automate/ease deployment to multiple machines:

http://www.nongnu.org/fab/

example:

set(
  project = 'awesome-app',
  fab_hosts = ['n1.cluster.com', 'n2.cluster.com'],
)

def deploy():
  "Build the project and deploy it to a specified "
  "environment."
  local('mvn package')
  put('target/$(project).war', '$(project).war')
  put('install-script.sh', 'install-script.sh')
  sudo('install-script.sh')

This works by using the ssh protocol using Paramiko.

Document Actions