Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maschmann/devbox-ansible
Ansible devbox
https://github.com/maschmann/devbox-ansible
Last synced: about 2 months ago
JSON representation
Ansible devbox
- Host: GitHub
- URL: https://github.com/maschmann/devbox-ansible
- Owner: maschmann
- License: mit
- Created: 2014-05-13T20:28:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-14T21:24:19.000Z (about 9 years ago)
- Last Synced: 2023-04-01T10:29:20.037Z (almost 2 years ago)
- Language: Shell
- Size: 77.1 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# devbox-ansible
A small Ubuntu 15.04 based vagrant box, provisioned with ansible## What's inside?
devbox-ansible comes with a full web environment in mind.
Namely it has following modules preinstalled:* nginx
* php-fpm
* MariaDb
* phpmyadmin
* phptools (phpunit, phploc, ...)Also there's a separate user to run your web stuff (wwwdev) and a basic set of tool scripts for working with git or linking nginx configs from your repository directory to sites-enabled and much more :-)
## Configuration
Install ansible, python and vagrant.
After cloning the repository to your local environment, add your ssh public key todevbox-ansible/ansible/roles/user/files/authorized_keys
and your name and email address to group_vars:user_home_base: /home
user: wwwdevThat should do it :-)
## First start
Goto the cloned repository and commandline this:user@yourpc:~/git/devbox-ansible$ ./up
This equals the vagrant up command but also sets a environment variable to suppress ansible's cowsay and provides a more readable output of the first provisioning. If you need provisioning later on, just vagrant provision or use the ./provision script withouth the cowsay.## Connecting to the box
The IP represents the version of ubuntu you're using - in this case version 15.
You've got two options:* vagrant ssh and then su wwwdev
* ssh [email protected]I'd suggest you add something like
192.168.56.15 dev.local
Or similar to your local hosts file to ease your access to the virtual machine.
The "dev.local" part is the default address your nginx installation will listen to.## Further steps in devbox development
For later releases of this devbox I will rely more on already established ansible galaxy packages. Namely Jeff Geerling's :-)