-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
38 lines (32 loc) · 1.1 KB
/
Vagrantfile
File metadata and controls
38 lines (32 loc) · 1.1 KB
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
Vagrant.configure("2") do |config|
#box
config.vm.provider "virtualbox" do |v|
v.name = "PHP7 Dev"
v.customize ["modifyvm", :id, "--memory", "512"]
end
#boxinfo
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "lemphp7.localhost"
config.vm.network :private_network, ip: "192.168.11.22"
#forwarded ports
config.vm.network :forwarded_port, host: 8888, guest: 80, auto_correct: true
config.vm.network :forwarded_port, host: 3306, guest: 3306, auto_correct: true
config.vm.network :forwarded_port, host: 9000, guest: 9000, auto_correct: true
config.vm.network :forwarded_port, host: 20905, guest: 20905, auto_correct: true
#starts provision
config.vm.provision "run", type: "shell" do |s|
s.privileged = false
s.path = "puppet/ban.sh"
end
#provision puppet
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.module_path = 'puppet/modules'
puppet.manifest_file = 'init.pp'
end
#ends provision
config.vm.provision "end", type: "shell" do |s|
s.privileged = false
s.path = "puppet/end.sh"
end
end