Skip to content

Commit a41aa1a

Browse files
committed
initial commit
0 parents  commit a41aa1a

File tree

6 files changed

+1368
-0
lines changed

6 files changed

+1368
-0
lines changed

.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Created by http://www.gitignore.io
2+
3+
### Vagrant ###
4+
.vagrant/
5+
6+
7+
### OSX ###
8+
.DS_Store
9+
.AppleDouble
10+
.LSOverride
11+
12+
# Icon must end with two \r
13+
Icon
14+
15+
16+
# Thumbnails
17+
._*
18+
19+
# Files that might appear on external disk
20+
.Spotlight-V100
21+
.Trashes
22+
23+
# Directories potentially created on remote AFP share
24+
.AppleDB
25+
.AppleDesktop
26+
Network Trash Folder
27+
Temporary Items
28+
.apdisk

machines/m1/Vagrantfile

+268
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,268 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
# Config Github Settings
5+
github_username = "fideloper"
6+
github_repo = "Vaprobash"
7+
github_branch = "master"
8+
github_url = "https://raw.githubusercontent.com/#{github_username}/#{github_repo}/#{github_branch}"
9+
10+
# Server Configuration
11+
12+
hostname = "m1.dev"
13+
14+
# Set a local private network IP address.
15+
# See http://en.wikipedia.org/wiki/Private_network for explanation
16+
# You can use the following IP ranges:
17+
# 10.0.0.1 - 10.255.255.254
18+
# 172.16.0.1 - 172.31.255.254
19+
# 192.168.0.1 - 192.168.255.254
20+
server_ip = "192.168.22.10"
21+
server_memory = "384" # MB
22+
server_timezone = "UTC"
23+
24+
# Database Configuration
25+
mysql_root_password = "root" # We'll assume user "root"
26+
mysql_version = "5.5" # Options: 5.5 | 5.6
27+
mysql_enable_remote = "false" # remote access enabled when true
28+
pgsql_root_password = "root" # We'll assume user "root"
29+
30+
# Languages and Packages
31+
ruby_version = "latest" # Choose what ruby version should be installed (will also be the default version)
32+
ruby_gems = [ # List any Ruby Gems that you want to install
33+
#"jekyll",
34+
#"sass",
35+
#"compass",
36+
]
37+
38+
# To install HHVM instead of PHP, set this to "true"
39+
hhvm = "false"
40+
41+
# PHP Options
42+
composer_packages = [ # List any global Composer packages that you want to install
43+
#"phpunit/phpunit:4.0.*",
44+
#"codeception/codeception=*",
45+
#"phpspec/phpspec:2.0.*@dev",
46+
#"squizlabs/php_codesniffer:1.5.*",
47+
]
48+
49+
# Default web server document root
50+
# Symfony's public directory is assumed "web"
51+
# Laravel's public directory is assumed "public"
52+
public_folder = "/vagrant"
53+
54+
laravel_root_folder = "/vagrant/laravel" # Where to install Laravel. Will `composer install` if a composer.json file exists
55+
laravel_version = "latest-stable" # If you need a specific version of Laravel, set it here
56+
symfony_root_folder = "/vagrant/symfony" # Where to install Symfony.
57+
58+
nodejs_version = "latest" # By default "latest" will equal the latest stable version
59+
nodejs_packages = [ # List any global NodeJS packages that you want to install
60+
#"grunt-cli",
61+
#"gulp",
62+
#"bower",
63+
#"yo",
64+
]
65+
66+
Vagrant.configure("2") do |config|
67+
68+
# Set server to Ubuntu 14.04
69+
config.vm.box = "ubuntu/trusty64"
70+
71+
# Create a hostname, don't forget to put it to the `hosts` file
72+
# This will point to the server's default virtual host
73+
# TO DO: Make this work with virtualhost along-side xip.io URL
74+
config.vm.hostname = hostname
75+
76+
# Create a static IP
77+
config.vm.network :private_network, ip: server_ip
78+
79+
# Use NFS for the shared folder
80+
config.vm.synced_folder ".", "/vagrant",
81+
id: "core",
82+
:nfs => true,
83+
:mount_options => ['nolock,vers=3,udp,noatime']
84+
85+
# If using VirtualBox
86+
config.vm.provider :virtualbox do |vb|
87+
88+
# Set server memory
89+
vb.customize ["modifyvm", :id, "--memory", server_memory]
90+
91+
# Set the timesync threshold to 10 seconds, instead of the default 20 minutes.
92+
# If the clock gets more than 15 minutes out of sync (due to your laptop going
93+
# to sleep for instance, then some 3rd party services will reject requests.
94+
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000]
95+
96+
# Prevent VMs running on Ubuntu to lose internet connection
97+
# vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
98+
# vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
99+
100+
end
101+
102+
# If using VMWare Fusion
103+
config.vm.provider "vmware_fusion" do |vb, override|
104+
override.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
105+
106+
# Set server memory
107+
vb.vmx["memsize"] = server_memory
108+
109+
end
110+
111+
# If using Vagrant-Cachier
112+
# http://fgrehm.viewdocs.io/vagrant-cachier
113+
if Vagrant.has_plugin?("vagrant-cachier")
114+
# Configure cached packages to be shared between instances of the same base box.
115+
# Usage docs: http://fgrehm.viewdocs.io/vagrant-cachier/usage
116+
config.cache.scope = :box
117+
118+
config.cache.synced_folder_opts = {
119+
type: :nfs,
120+
mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
121+
}
122+
end
123+
124+
####
125+
# Base Items
126+
##########
127+
128+
# Provision Base Packages
129+
config.vm.provision "shell", path: "#{github_url}/scripts/base.sh", args: github_url
130+
131+
# Provision PHP
132+
#config.vm.provision "shell", path: "#{github_url}/scripts/php.sh", args: [server_timezone, hhvm]
133+
134+
135+
# Enable MSSQL for PHP
136+
# config.vm.provision "shell", path: "#{github_url}/scripts/mssql.sh"
137+
138+
# Provision Vim
139+
# config.vm.provision "shell", path: "#{github_url}/scripts/vim.sh", args: github_url
140+
141+
142+
####
143+
# Web Servers
144+
##########
145+
146+
# Provision Apache Base
147+
# config.vm.provision "shell", path: "#{github_url}/scripts/apache.sh", args: [server_ip, public_folder, hostname, github_url]
148+
149+
# Provision Nginx Base
150+
# config.vm.provision "shell", path: "#{github_url}/scripts/nginx.sh", args: [server_ip, public_folder, hostname, github_url]
151+
152+
153+
####
154+
# Databases
155+
##########
156+
157+
# Provision MySQL
158+
# config.vm.provision "shell", path: "#{github_url}/scripts/mysql.sh", args: [mysql_root_password, mysql_version, mysql_enable_remote]
159+
160+
# Provision PostgreSQL
161+
# config.vm.provision "shell", path: "#{github_url}/scripts/pgsql.sh", args: pgsql_root_password
162+
163+
# Provision SQLite
164+
# config.vm.provision "shell", path: "#{github_url}/scripts/sqlite.sh"
165+
166+
# Provision RethinkDB
167+
# config.vm.provision "shell", path: "#{github_url}/scripts/rethinkdb.sh", args: pgsql_root_password
168+
169+
# Provision Couchbase
170+
# config.vm.provision "shell", path: "#{github_url}/scripts/couchbase.sh"
171+
172+
# Provision CouchDB
173+
# config.vm.provision "shell", path: "#{github_url}/scripts/couchdb.sh"
174+
175+
# Provision MongoDB
176+
# config.vm.provision "shell", path: "#{github_url}/scripts/mongodb.sh"
177+
178+
# Provision MariaDB
179+
# config.vm.provision "shell", path: "#{github_url}/scripts/mariadb.sh", args: [mysql_root_password, mysql_enable_remote]
180+
181+
####
182+
# Search Servers
183+
##########
184+
185+
# Install Elasticsearch
186+
# config.vm.provision "shell", path: "#{github_url}/scripts/elasticsearch.sh"
187+
188+
# Install SphinxSearch
189+
# config.vm.provision "shell", path: "#{github_url}/scripts/sphinxsearch.sh"
190+
191+
####
192+
# Search Server Administration (web-based)
193+
##########
194+
195+
# Install ElasticHQ
196+
# Admin for: Elasticsearch
197+
# Works on: Apache2, Nginx
198+
# config.vm.provision "shell", path: "#{github_url}/scripts/elastichq.sh"
199+
200+
201+
####
202+
# In-Memory Stores
203+
##########
204+
205+
# Install Memcached
206+
# config.vm.provision "shell", path: "#{github_url}/scripts/memcached.sh"
207+
208+
# Provision Redis (without journaling and persistence)
209+
# config.vm.provision "shell", path: "#{github_url}/scripts/redis.sh"
210+
211+
# Provision Redis (with journaling and persistence)
212+
# config.vm.provision "shell", path: "#{github_url}/scripts/redis.sh", args: "persistent"
213+
# NOTE: It is safe to run this to add persistence even if originally provisioned without persistence
214+
215+
216+
####
217+
# Utility (queue)
218+
##########
219+
220+
# Install Beanstalkd
221+
# config.vm.provision "shell", path: "#{github_url}/scripts/beanstalkd.sh"
222+
223+
# Install Heroku Toolbelt
224+
# config.vm.provision "shell", path: "https://toolbelt.heroku.com/install-ubuntu.sh"
225+
226+
# Install Supervisord
227+
# config.vm.provision "shell", path: "#{github_url}/scripts/supervisord.sh"
228+
229+
####
230+
# Additional Languages
231+
##########
232+
233+
# Install Nodejs
234+
# config.vm.provision "shell", path: "#{github_url}/scripts/nodejs.sh", privileged: false, args: nodejs_packages.unshift(nodejs_version, github_url)
235+
236+
# Install Ruby Version Manager (RVM)
237+
# config.vm.provision "shell", path: "#{github_url}/scripts/rvm.sh", privileged: false, args: ruby_gems.unshift(ruby_version)
238+
239+
####
240+
# Frameworks and Tooling
241+
##########
242+
243+
# Provision Composer
244+
# config.vm.provision "shell", path: "#{github_url}/scripts/composer.sh", privileged: false, args: composer_packages.join(" ")
245+
246+
# Provision Laravel
247+
# config.vm.provision "shell", path: "#{github_url}/scripts/laravel.sh", privileged: false, args: [server_ip, laravel_root_folder, public_folder, laravel_version]
248+
249+
# Provision Symfony
250+
# config.vm.provision "shell", path: "#{github_url}/scripts/symfony.sh", privileged: false, args: [server_ip, symfony_root_folder, public_folder]
251+
252+
# Install Screen
253+
# config.vm.provision "shell", path: "#{github_url}/scripts/screen.sh"
254+
255+
# Install Mailcatcher
256+
# config.vm.provision "shell", path: "#{github_url}/scripts/mailcatcher.sh"
257+
258+
# Install git-ftp
259+
# config.vm.provision "shell", path: "#{github_url}/scripts/git-ftp.sh", privileged: false
260+
261+
####
262+
# Local Scripts
263+
# Any local scripts you may want to run post-provisioning.
264+
# Add these to the same directory as the Vagrantfile.
265+
##########
266+
# config.vm.provision "shell", path: "./local-script.sh"
267+
268+
end

0 commit comments

Comments
 (0)