-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
30 lines (26 loc) · 1.04 KB
/
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
Vagrant::Config.run do |config|
config.vm.define :apache do |apache_config|
apache_config.vm.box = "lucid64"
config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
apache_config.vm.boot_mode = :gui
apache_config.vm.provision :shell, :inline => "sudo apt-get update"
apache_config.vm.forward_port "http", 80, 8080
apache_config.vm.forward_port "varnish", 81, 8081
apache_config.vm.forward_port "varnish_conf", 2000, 12000
apache_config.vm.forward_port "mysql", 3306, 13306
apache_config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "apache.pp"
end
apache_config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "mysql.pp"
end
apache_config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "varnish.pp"
end
apache_config.vm.share_folder "./apache/var/www", "/var/www/", "apache/var/www/"
#config.vm.provision :shell, :inline => "sudo service apache2 restart"
end
end