This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
sample_Vagrantfile
46 lines (40 loc) · 1.68 KB
/
sample_Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# Vagrant configuration options are fully documented at
# https://docs.vagrantup.com.
config.vm.box = "centos7"
config.vm.box_url = "http://camp.curationexperts.com/boxes/centos70-x86_64-20151111.box"
# Forwarded port mappings allow access to a specific port on the guest vm
# from a port on the host machine - to see your vm's port 80, use localhost:8484
config.vm.network "forwarded_port", guest: 80, host: 8484 # apache
config.vm.network "forwarded_port", guest: 8080, host: 2424 # tomcat
# config.vm.network "forwarded_port", guest: 3000, host: 8032 # webrick
# To share an additional folder to the guest VM, state the path on the host
# to the actual folder, then the path on the guest to mount the folder.
# config.vm.synced_folder "../data", "/vagrant_data"
# Provider-specific configuration for VirtualBox:
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
#vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = 2048
vb.cpus = 2
end
# Enable provisioning with Ansible
config.vm.provision "ansible" do |ansible|
#ansible.verbose = 'vvv'
ansible.extra_vars = {
deploy_user: "vagrant",
project_dir: "/vagrant",
server_name: "localhost",
rails_env: "development",
bundle_path: "~/.bundle"
}
ansible.playbook = "sufia-centos/vagrant.yml"
end
end