Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.01 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.01 KB

Multi-Machine Vagrant from CSV tables

This is a multi-machine Vagrant system that dynamically configures four systems from CSV tables.

Provisioning scripts will make changes to /etc/hosts and /etc/ssh/ssh_config for easy access between systems.

Instructions

vagrant up          # start and provision all systems
vagrant provision   # provision or re-provision all systems
vagrant ssh         # ssh into master
vagrant ssh client  # ssh into client
vagrant halt client # shutdown client
vagrant halt        # shutdown all systems
vagrant reload      # restart all systems
vagrant destroy     # delete all systems

Ansible Inventory

A sample Python script is available for testing an Ansible dynamic inventory file. With Ansible installed on a Linux or Mac OS X host, you can run:

vagrant up          # bring systems up
export ANSIBLE_HOST_KEY_CHECKING=False
ansible all -i "config/inventory.py" -m ping
# run a single command
ansible all -i "config/inventory.py" -a 'lsb_release -a'