- # If using VMWare Fusion
- config.vm.provider "vmware_fusion" do |vb, override|
- override.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
-
- # Set server memory
- vb.vmx["memsize"] = server_memory
-
- end
-
- # If using Vagrant-Cachier
- # http://fgrehm.viewdocs.io/vagrant-cachier
- if Vagrant.has_plugin?("vagrant-cachier")
- # Configure cached packages to be shared between instances of the same base box.
- # Usage docs: http://fgrehm.viewdocs.io/vagrant-cachier/usage
- config.cache.scope = :box
-
- config.cache.synced_folder_opts = {
- type: :nfs,
- mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
- }
- end
-
- ####
- # Base Items
- ##########
-
- # Provision Base Packages
- config.vm.provision "shell", path: "#{github_url}/scripts/base.sh", args: [github_url, server_swap]
-
- # Provision PHP
- config.vm.provision "shell", path: "#{github_url}/scripts/php.sh", args: [server_timezone, hhvm]
-
- # Enable MSSQL for PHP
- # config.vm.provision "shell", path: "#{github_url}/scripts/mssql.sh"
-
- # Provision Vim
- # config.vm.provision "shell", path: "#{github_url}/scripts/vim.sh", args: github_url
-
-
- ####
- # Web Servers
- ##########
-
- # Provision Apache Base
- config.vm.provision "shell", path: "#{github_url}/scripts/apache.sh", args: [server_ip, public_folder, hostname, github_url]
-
- # Provision Nginx Base
- # config.vm.provision "shell", path: "#{github_url}/scripts/nginx.sh", args: [server_ip, public_folder, hostname, github_url]
-
-
- ####
- # Databases
- ##########
-
- # Provision MySQL
- config.vm.provision "shell", path: "#{github_url}/scripts/mysql.sh", args: [mysql_root_password, mysql_version, mysql_enable_remote]
-
- # Provision PostgreSQL
- # config.vm.provision "shell", path: "#{github_url}/scripts/pgsql.sh", args: pgsql_root_password
-
- # Provision SQLite
- # config.vm.provision "shell", path: "#{github_url}/scripts/sqlite.sh"
-
- # Provision RethinkDB
- # config.vm.provision "shell", path: "#{github_url}/scripts/rethinkdb.sh", args: pgsql_root_password
-
- # Provision Couchbase
- # config.vm.provision "shell", path: "#{github_url}/scripts/couchbase.sh"
-
- # Provision CouchDB
- # config.vm.provision "shell", path: "#{github_url}/scripts/couchdb.sh"
-
- # Provision MongoDB
- # config.vm.provision "shell", path: "#{github_url}/scripts/mongodb.sh"
-
- # Provision MariaDB
- # config.vm.provision "shell", path: "#{github_url}/scripts/mariadb.sh", args: [mysql_root_password, mysql_enable_remote]
-
- ####
- # Search Servers
- ##########
-
- # Install Elasticsearch
- # config.vm.provision "shell", path: "#{github_url}/scripts/elasticsearch.sh"
-
- # Install SphinxSearch
- # config.vm.provision "shell", path: "#{github_url}/scripts/sphinxsearch.sh"
-
- ####
- # Search Server Administration (web-based)
- ##########
-
- # Install ElasticHQ
- # Admin for: Elasticsearch
- # Works on: Apache2, Nginx
- # config.vm.provision "shell", path: "#{github_url}/scripts/elastichq.sh"
-
-
- ####
- # In-Memory Stores
- ##########
-
- # Install Memcached
- # config.vm.provision "shell", path: "#{github_url}/scripts/memcached.sh"
-
- # Provision Redis (without journaling and persistence)
- # config.vm.provision "shell", path: "#{github_url}/scripts/redis.sh"
-
- # Provision Redis (with journaling and persistence)
- # config.vm.provision "shell", path: "#{github_url}/scripts/redis.sh", args: "persistent"
- # NOTE: It is safe to run this to add persistence even if originally provisioned without persistence
-
-
- ####
- # Utility (queue)
- ##########
-
- # Install Beanstalkd
- # config.vm.provision "shell", path: "#{github_url}/scripts/beanstalkd.sh"
-
- # Install Heroku Toolbelt
- # config.vm.provision "shell", path: "https://toolbelt.heroku.com/install-ubuntu.sh"
-
- # Install Supervisord
- # config.vm.provision "shell", path: "#{github_url}/scripts/supervisord.sh"
-
- ####
- # Additional Languages
- ##########
-
- # Install Nodejs
- # config.vm.provision "shell", path: "#{github_url}/scripts/nodejs.sh", privileged: false, args: nodejs_packages.unshift(nodejs_version, github_url)
-
- # Install Ruby Version Manager (RVM)
- # config.vm.provision "shell", path: "#{github_url}/scripts/rvm.sh", privileged: false, args: ruby_gems.unshift(ruby_version)
-
- ####
- # Frameworks and Tooling
- ##########
-
- # Provision Composer
- # config.vm.provision "shell", path: "#{github_url}/scripts/composer.sh", privileged: false, args: composer_packages.join(" ")
-
- # Provision Laravel
- # config.vm.provision "shell", path: "#{github_url}/scripts/laravel.sh", privileged: false, args: [server_ip, laravel_root_folder, public_folder, laravel_version]
-
- # Provision Symfony
- # config.vm.provision "shell", path: "#{github_url}/scripts/symfony.sh", privileged: false, args: [server_ip, symfony_root_folder, public_folder]
-
- # Install Screen
- # config.vm.provision "shell", path: "#{github_url}/scripts/screen.sh"
-
- # Install config Mailcatcher
- # config.vm.provision "shell", path: "#{github_url}/scripts/mailcatcher.sh"
-
- # Install git-ftp
- # config.vm.provision "shell", path: "#{github_url}/scripts/git-ftp.sh", privileged: false
-
- ####
- # Local Scripts
- # Any local scripts you may want to run post-provisioning.
- # Add these to the same directory as the Vagrantfile.
- ##########