Created
January 19, 2011 20:36
-
-
Save easel/786819 to your computer and use it in GitHub Desktop.
puppet multi-vm vagrantfile for v0.7.0
This file contains hidden or 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
Vagrant::Config.run do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.define :fw do |fw_config| | |
fw_config.vm.box = "lucid64-puppet" | |
fw_config.vm.box_url = "https://someplace/lucid64-puppet.box" | |
fw_config.vm.forward_port "http", 80, 9080 | |
fw_config.vm.customize do |vm| | |
vm.memory_size = 384 | |
vm.cpu_count = 1 | |
end | |
fw_config.vm.network("192.168.0.10") | |
fw_config.vm.provision :puppet do |puppet| | |
puppet.manifests_path = "manifests" | |
puppet.module_path = "modules" | |
puppet.manifest_file = "site.pp" | |
end | |
fw_config.vm.boot_mode = :gui | |
end | |
config.vm.define :app do |app_config| | |
app_config.vm.box = "centos55-64" | |
app_config.vm.customize do |vm| | |
vm.memory_size = 1024 | |
vm.cpu_count = 2 | |
end | |
#app_config.vm.network("192.168.0.20") | |
app_config.vm.box_url = "https://someplace/centos55-64.box" | |
# Boot with a GUI so you can see the screen. (Default is headless) | |
# Share an additional folder to the guest VM. The first argument is | |
# an identifier, the second is the path on the guest to mount the | |
# folder, and the third is the path on the host to the actual folder. | |
# config.vm.share_folder("v-data", "/vagrant_data", "../data") | |
app_config.vm.provision :puppet do |puppet| | |
puppet.manifests_path = "manifests" | |
puppet.module_path = "modules" | |
puppet.manifest_file = "site.pp" | |
end | |
app_config.vm.boot_mode = :gui | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment