Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samnoon1971/vagrant-playground

Vagrantfiles for experimentation
https://github.com/samnoon1971/vagrant-playground

ansible docker ruby vagrant

Last synced: 2 days ago
JSON representation

Vagrantfiles for experimentation

Awesome Lists containing this project

README

        

# Vagrant-Playground
Vagrantfiles for experimentation

## Cloning the repository

```
git clone https://github.com/samnoon1971/Vagrant-Playground.git
```

## Environment Setup

Note: You must have Virtualbox installed on your machine.

To provision VirtualBox VMs using Vagrant:
```bash
vagrant up
```

To add `ssh` configs of virtual machines:
```bash
vagrant ssh-config >> ~/.ssh/known_hosts
```

To shutdown virtual machines using Vagrant:
```bash
vagrant halt
```
To build custom Ansible docker image:

```bash
docker build -t abrar/ansible:1.0.0 .
```

To run Ansible Configurations for LAMP server on Ubuntu VMs:

```bash
docker run --rm -v "$(pwd)":/ansible -w /ansible abrar/ansible:1.0.0 ansible-playbook -i provision-6-ubuntu-vms/lamp_simple/hosts provision-6-ubuntu-vms/lamp_simple/site.yml
```