Created
June 9, 2012 20:03
-
-
Save zipkid/2902377 to your computer and use it in GitHub Desktop.
Puppet testing Vagrantfile
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| | |
config.ssh.max_tries = 50 | |
config.ssh.timeout = 300 | |
# Master | |
config.vm.define :pm1 do |pm1_config| | |
pm1_config.vm.box = "CentOS-6.2-x86_64-minimal" | |
pm1_config.vm.network :hostonly, "192.168.11.51" | |
pm1_config.vm.customize ["modifyvm", :id, "--memory", "512", "--name", "pm1"] | |
pm1_config.vm.host_name = "pm1.lan.xxx.com" | |
pm1_config.vm.share_folder("puppet", "/etc/puppet", "../../customer/xxx/puppet") # , :nfs => true) | |
pm1_config.vm.share_folder("modules", "/etc/puppet-modules", "../../puppet-modules") # , :nfs => true) | |
#pm1_config.vm.boot_mode = :gui | |
end | |
# Dashboard | |
config.vm.define :da1 do |da1_config| | |
da1_config.vm.box = "CentOS-6.2-x86_64-minimal" | |
da1_config.vm.network :hostonly, "192.168.11.52" | |
da1_config.vm.customize ["modifyvm", :id, "--memory", "512", "--name", "da1"] | |
da1_config.vm.host_name = "da1.lan.xxx.com" | |
#da1_config.vm.boot_mode = :gui | |
end | |
config.vm.define :pc1 do |pc1_config| | |
pc1_config.vm.box = "CentOS-6.2-x86_64-minimal" | |
pc1_config.vm.network :hostonly, "192.168.11.61" | |
pc1_config.vm.customize ["modifyvm", :id, "--memory", "380", "--name", "pc1" ] | |
pc1_config.vm.host_name = "pc1.lan.xxxx.com" | |
#pc1_config.vm.boot_mode = :gui | |
end | |
config.vm.define :pc2 do |pc2_config| | |
pc2_config.vm.box = "Debian-6.0.4-amd64-netboot" | |
pc2_config.vm.network :hostonly, "192.168.11.62" | |
pc2_config.vm.customize ["modifyvm", :id, "--memory", "380", "--name", "pc2" ] | |
pc2_config.vm.host_name = "pc2.lan.xxxx.com" | |
#pc2_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