Name Last commit Last update
inventory
playbook
vagrant
README.md
ansible-launch.sh

alt

Ansible deployment for AIDMOIt

This project aims to deploy a datalake and its ecosystem using Ansible and/or Vagrant.

Acutally, this project does :

  • Prod Environment : Deploy a mononode HDFS on a server using ansible
  • Sandbox Encironment: Deploy a mononode HDFS on a VM from Vagrant & Ansible

Prerequisites

  • Ansible
    • Install ansible on your own computer (for Ubuntu or Debian) :
     apt-get install ansible
    • If you connect to your remote machine using password instead of ssh-key (as recommanded), you have to install this apt :
     apt-get install sshpass
  • Vagrant with virtualox
    • Install virtualbox on your own computer (for Ubuntu or Debian):
     apt-get install virtualbox
    • Install vagrant on your own computer (for Ubuntu or Debian):
     apt-get install vagrant

Ansible

Description of Ansible

Wikipedia definition :

Ansible is an open-source software provisioning, configuration management, and application-deployment tool.[2] It runs on many Unix-like systems, and can configure both Unix-like systems as well as Microsoft Windows. It includes its own declarative language to describe system configuration.

Ansible is a good tool to deploy and maintain IT systems. Based on Yaml configuration files, ansible makes it easy to describe your configuration and share it with your collaborators. Then you can deploy it to your infrastructure, you only need to have a ssh access to your servers.

Getting started

Ansible playbook is a list of system instructions which has to be send to a machine. That's why you only need 2 things :

  • Get ansible installed on your own computer
  • Have a remote machine (physical, vmware, virtualbox, docker, lxc, ...) with a ssh server running

Running playbook

First configure your IP adress in the inventory file

Then run the script ansible-launch.sh :

/bin/bash ansible-launch.sh

Vagrant & Ansible

Description of Vagrant

Wikipedia definition :

Vagrant is an open-source software product for building and maintaining portable virtual software development environments,[5] e.g. for VirtualBox, KVM, Hyper-V, Docker containers, VMware, and AWS. It tries to simplify the software configuration management of virtualizations in order to increase development productivity. Vagrant is written in the Ruby language, but its ecosystem supports development in a few languages.

Vagrant manages your virtual machine (VM) on command line. The benefits are :

  • Quickly create VM with a know & controlled environment
  • Restore your VM to a known state
  • Destribute yours VM easly

Vagrant and ansible can be combined to create/deploy/maintain your VM as we do in this project

Getting started

You only need virtual box and vagrant installed on your computer. This project is going to create VM that you need for your datalake

Running Vagrant

  1. In cli : Go to the directory which contains the VagrantFile
  2. In cli : start your VM:
vagrant up