Created
May 12, 2011 11:29
-
-
Save denisbr/968344 to your computer and use it in GitHub Desktop.
Puppetmaster / Client 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.vm.define :puppetserver do |puppetserver_config| | |
puppetserver_config.vm.box = "lucid64_local" | |
puppetserver_config.vm.host_name = "puppetmaster" | |
puppetserver_config.vm.forward_port("ssh", 22, 2222, :auto => true) | |
#puppetserver_config.vm.forward_port("http", 80, 8080) | |
puppetserver_config.vm.network "192.168.10.10" | |
# puppetserver_config.vm.boot_mode = :gui | |
puppetserver_config.vm.provision :shell, :path => "shellprovision/prepuppet.sh" | |
puppetserver_config.vm.provision :puppet do |puppet| | |
puppet.manifests_path = "puppetmanifests" | |
puppet.manifest_file = "puppetmaster.pp" | |
end | |
puppetserver_config.vm.provision :shell, :path => "shellprovision/postpuppetmaster.sh" | |
end | |
config.vm.define :puppetclient do |puppetclient_config| | |
puppetclient_config.vm.box = "lucid64_local" | |
puppetclient_config.vm.host_name = "puppetclient" | |
puppetclient_config.vm.forward_port("ssh", 22, 2223, :auto => true) | |
puppetclient_config.vm.forward_port("http", 80, 8080) | |
puppetclient_config.vm.network "192.168.10.20" | |
# puppetclient_config.vm.boot_mode = :gui | |
puppetclient_config.vm.provision :shell, :path => "shellprovision/prepuppet.sh" | |
puppetclient_config.vm.provision :puppet_server do |puppet| | |
puppet.puppet_server = "puppet" | |
puppet.puppet_node = "puppetclient.linpro.no" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment