https://github.com/ozankasikci/vagrant-ansible-docker
https://github.com/ozankasikci/vagrant-ansible-docker
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ozankasikci/vagrant-ansible-docker
- Owner: ozankasikci
- Created: 2019-01-28T20:38:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-28T21:21:22.000Z (over 6 years ago)
- Last Synced: 2025-01-07T11:49:46.064Z (5 months ago)
- Language: Shell
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
To start: simply run `vagrant-up-example` shell file. This inits vagrant with some environment variables.
Vagrant provisions a centos/7 instance and installs docker within it.
Vagrant ansible handles ansible installation within VM, the environment variables gets passed from shell file to vagrant, and from vagrant to ansible.
`database` playbook starts `install-docker-py` and `init-database` roles. `init-database` role uses `docker_container` ansible module to fire up a mariadb instance.
In short, Vagrant provisions a centos VM, passes variables to ansible, ansible uses docker module to fetch and start specified mariadb version with the given credentials within the VM.