Ansible: Vagrant VM Provisioning

// Ansible is used for the configuration or provisioning of the following Vagrant VM infrastructure // Installation from “Personal Packages Archive (PPA)” sudo -s apt-get install software-properties-common apt-add-repository ppa:ansible/ansible apt-get update apt-get install ansible // Check ansible –version ansible-playbook –version ansible-galaxy –help // Creation of a new/custom ‘hosts’ or ‘inventory’ file // for configuring the ‘dev’ environment cd ~ mkdir ansible cd ansible vi dev // Creating a custom config file (ansible.cfg) // Reference to the inventory (hosts) file cd ~/ansible vi ansible.cfg [defaults] inventory=./dev ...

March 16, 2017 · Aaron

Vagrant: Basics

VM-Management // Help vagrant help vagrant help init // Initialize folder for Vagrant, i.e. generate ‘Vagrantfile’ vagrant init hashicorp/precise64 // Setup and configure an environment (Vagrant box) vagrant up // List installed boxes // Windows folder // Login via SSH vagrant ssh // VM sleep mode vagrant suspend // Turn off VM (shutdown) vagrant halt // Delete VM vagrant destroy Vagrant Box // Install additional environments (Vagrant box), e.g. Ubuntu trusty ...

March 9, 2017 · Aaron