Skip to content

Instantly share code, notes, and snippets.

@steinim
Last active November 2, 2017 19:56
Show Gist options
  • Save steinim/8da73dc4cb88376dc7de4fed99a818e6 to your computer and use it in GitHub Desktop.
Save steinim/8da73dc4cb88376dc7de4fed99a818e6 to your computer and use it in GitHub Desktop.
Preparations for the tutorial "Zero Downtime Deployment with Ansible"

Preparations for the tutorial "Zero Downtime Deployment with Ansible"

Install Ansible

Mac:

Install Python setuptools: https://pypi.python.org/pypi/setuptools#installation-instructions

If you prefer not to install packages to your global site-packages you can install and use virtualenv: http://virtualenv.readthedocs.org/en/latest/

sudo easy_install pip

sudo pip install paramiko PyYAML jinja2 passlib

sudo pip install ansible

Then, if you're going to update ansible later, just do:

sudo pip install ansible --upgrade

Other:

http://docs.ansible.com/ansible/intro_installation.html#installing-the-control-machine

Install VirtualBox and Extension Pack

https://www.virtualbox.org/wiki/Downloads

Install Vagrant

http://docs.vagrantup.com/v2/installation/

Install vagrant-cachier plugin to speed up apt with a shared cache between boxes:

vagrant plugin install vagrant-cachier

Install vagrant-hostmanager plugin to manage the /etc/hosts file on guest machines and the host:

vagrant plugin install vagrant-hostmanager

Install Java and Maven (Optional)

http://www.oracle.com/technetwork/articles/javase/index-jsp-138363.html

http://maven.apache.org/download.cgi

Clone the tutorial repo:

git clone https://github.com/steinim/zero-downtime-ansible.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment