Deploy LAMP with Vagrant and Fabric
Introduction Lets automate every thing using python and ssh. Fabric is python library and command-line tool, which use SSH for application deployment in remote servers. Install Fabric By default in all unix like machine Python is available. We can install fabric library by using utility 'pip' ## Install library for all users $ sudo pip install fabric python-vagrant ## OR Install library only for login user $ pip install fabric python-vagrant --user Create basic Vagrant file To start with fabric lets start our vagrant guest first. Please refer Vagrant Quickstart for more details on vagrant. Create directory ch2 and create basic Vagrantfile. $ mkdir ch2 ## Create Vagrant file similar to below $ cat Vagrantfile # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.box = "bento/centos-6.7" config.vm.network "forwarded_port", guest: 80, host: 8080 end $ vagrant up Write first Fabric code Firstl...