-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
33 lines (25 loc) · 759 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# centos 6.5
config.vm.box = "bradallenfisher/centos7"
# ip address
config.vm.network "private_network", ip: "192.168.7.7"
# host name
config.vm.hostname = "local.phpfpm.dev"
# virtual box name
config.vm.provider "virtualbox" do |v|
v.name = "phpfpm_5-6-apache_2-4"
v.memory = 4096
v.cpus = 2
end
# run script as root
config.vm.provision "shell",
path: "install/root.sh"
# run script as vagrant user
config.vm.provision "shell",
path: "install/post-install.sh",
privileged: FALSE
end