Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benatespina/ansible-vagrant
Vagrant Box built with Ansible
https://github.com/benatespina/ansible-vagrant
Last synced: about 1 month ago
JSON representation
Vagrant Box built with Ansible
- Host: GitHub
- URL: https://github.com/benatespina/ansible-vagrant
- Owner: benatespina
- License: other
- Created: 2015-03-05T22:05:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-11T23:16:05.000Z (over 9 years ago)
- Last Synced: 2024-10-12T11:15:54.629Z (2 months ago)
- Language: Smarty
- Size: 215 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible Vagrant VM
>This Vagrant is built with [Ansible](http://www.ansible.com/home).This box contains the following:
* HHVM
* PHP-FPM that can be 5.4, 5.5 or 5.6 with:
- php5-imagick
- php5-curl
- php5-gd
- php5-memcached
- php5-mysql
- php5-pgsql
- php5-xdebug
- phpunit
- php-pear
- php5-mcrypt
- php5-intl
- php5-mongo
- php5-redis
* Nginx with SSL support
* Apache
* MySQL
* Composer
* Memcached
* Node.js
* RubyPrerequisites
-------------
* Install [Vagrant](http://docs.vagrantup.com/v2/installation/index.html) on your system, which in turn requires [RubyGems](https://rubygems.org/pages/download) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads).*NOTE: If you are on Windows, I would recommend [RubyInstaller](http://rubyinstaller.org/) for installing Ruby and any ssh client as [PuTTY](http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) for log into your Vagrant box.*
* For simplified the usage of this box, you should install **[vagrant-hostsupdater](https://github.com/cogitatio/vagrant-hostsupdater)** plugin for Vagrant, which adds an entry to your `/etc/hosts` file on the host system and **[vagrant-vbguest](https://github.com/dotless-de/vagrant-vbguest)** plugin which automatically installs the host's VirtualBox Guest Additions on the guest system.
```
vagrant plugin install vagrant-hostsupdater
vagrant plugin install vagrant-vbguest
```
Getting started
---------------Firstly, you have to duplicate the `parameters.yml.dist` in the same directory but without `.dist`
extension, modifying the values with your favorite preferences. The following configuration is by default:```
#### REQUIRED ####
vm:
host_name: app
domain: localhost
host_path: /var/www
public_dir: /web
ip: 192.168.10.44
port: 8080
synced_folder: nfs # can be nfs, smb or rsync
box: http://files.vagrantup.com/precise64.box
cpu: 1
memory: 512#### OPTIONAL ####
nginx: ~
apache:
version: 2.2 # can be 2.2 or 2.4
php:
switcher: hhvm # can be php or hhvm
version: 5.6 # can be 5.4, 5.5 or 5.6
timezone: UTC
pecl:
- mongo
- redis
xdebug:
version: 2.2.5
max_nesting_level: 256
ide_key: sublime.xdebug
remote:
host: localhost
port: 9001
mysql:
version: 5.6 # can be 5.5, 5.6 or 5.7
root_password: root
user: user
password: 123
database: defaultDB
memcached: ~
nodejs:
version: 0.12.22
packages:
- gulp
- bower
- nodemon
- debug
- foreman
ruby:
version: 2.1 # can be 1.8, 1.9.3, 2.0 or 2.1
gems:
- sass
- compass
- scss-lint
```Then, you have to build the *Vagrant* machine and then, you have to connect via **ssh** to the VM with the following commands:
vagrant up
vagran sshThat's all! Now you can type your hostname in your favorite browser as this:
app.localhost
Credits
-------
Inspirated by Zach Adams's [hgv-deploy-full](https://github.com/zach-adams/hgv-deploy-full) and [Phansible](http://phansible.com/).Created by **benatespina** - [[email protected]](mailto:[email protected]).
Copyright (c) 2015[![License](http://img.shields.io/:license-mit-yellowgreen.svg)](https://github.com/benatespina/ansible-vagrant/blob/master/LICENSE)