Created
January 5, 2012 00:48
-
-
Save LeftyBC/1563108 to your computer and use it in GitHub Desktop.
Vagrantfile for a three-box VM setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
# apache wap webserver | |
#config.vbguest.iso_path = "/usr/share/virtualbox/VBoxGuestAdditions.iso" | |
config.vm.define :wap_webserver do |wap_webserver| | |
wap_webserver.vm.box = "centos-60-x86_64" | |
wap_webserver.vm.provision :puppet do |puppet| | |
puppet.manifest_file = "wap_webserver.pp" | |
puppet.module_path = "puppet-modules" | |
puppet.manifests_path = "puppet-manifests" | |
end | |
#wap_webserver.vm.boot_mode = :gui | |
wap_webserver.vm.forward_port(80,8080) | |
wap_webserver.vm.forward_port(443,8443) | |
#wap_webserver.vm.network :hostonly, "33.33.33.101" | |
wap_webserver.vm.host_name = "wap_webserver" | |
end | |
# apache ass webserver | |
config.vm.define :ass_webserver do |ass_webserver| | |
ass_webserver.vm.box = "centos-60-x86_64" | |
ass_webserver.vm.provision :puppet do |puppet| | |
puppet.manifest_file = "ass_webserver.pp" | |
puppet.module_path = "puppet-modules" | |
puppet.manifests_path = "puppet-manifests" | |
end | |
#ass_webserver.vm.boot_mode = :gui | |
ass_webserver.vm.forward_port(80,8081) | |
ass_webserver.vm.forward_port(443,8444) | |
#ass_webserver.vm.network :hostonly, "33.33.33.102" | |
ass_webserver.vm.host_name = "ass_webserver" | |
end | |
# mongodb server | |
config.vm.define :mongoserver do |mongoserver| | |
mongoserver.vm.box = "centos-60-x86_64" | |
mongoserver.vm.provision :puppet do |puppet| | |
puppet.manifest_file = "mongoserver.pp" | |
puppet.module_path = "puppet-modules" | |
puppet.manifests_path = "puppet-manifests" | |
end | |
#mongoserver.vm.boot_mode = :gui | |
#mongoserver.vm.network :hostonly, "33.33.33.121" | |
mongoserver.vm.host_name = "mongoserver" | |
end | |
# mysql server | |
config.vm.define :mysqlserver do |mysqlserver| | |
mysqlserver.vm.box = "centos-60-x86_64" | |
mysqlserver.vm.provision :puppet do |puppet| | |
puppet.manifest_file = "mysqlserver.pp" | |
puppet.module_path = "puppet-modules" | |
puppet.manifests_path = "puppet-manifests" | |
end | |
#mysqlserver.vm.boot_mode = :gui | |
#mysqlserver.vm.network :hostonly, "33.33.33.131" | |
mysqlserver.vm.host_name = "mysqlserver" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment