Last active
December 30, 2015 07:09
-
-
Save hunner/7793617 to your computer and use it in GitHub Desktop.
PE3 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
| # Download PE tarball, extract to the same location as the Vagrantfile and mv | |
| # to a directory called 'pe37'. Place a PE3 answers file called 'answers.txt' | |
| # in the same location as the Vagrantfile (you can steal the | |
| # all-in-one.answers.txt from the installer's answers/ directory). Run `vagrant | |
| # up` and wait for PE to install. Visit https://localhost:4443 to view the PE | |
| # console. | |
| Vagrant.configure("2") do |config| | |
| config.vm.define 'master' do |node| | |
| node.vm.box = "puppetlabs/ubuntu-14.04-64-nocm" | |
| node.vm.hostname = 'master.localdomain' | |
| node.vm.network :forwarded_port, guest: 443, host: 4443 | |
| node.vm.network :private_network, :ip => '192.168.23.3' | |
| node.vm.provision :hosts | |
| node.vm.provision :shell, :inline => "/vagrant/pe37/puppet-enterprise-installer -a /vagrant/master.txt" | |
| # Here is how to symlink modules from the vagrant directory | |
| #node.vm.provision :shell, :inline => "ln -s /vagrant/puppetlabs-netscaler /etc/puppetlabs/puppet/environments/production/modules/netscaler" | |
| node.vm.provider "vmware_fusion" do |v| | |
| v.vmx["memsize"] = "4096" | |
| end | |
| end | |
| config.vm.define 'agent' do |node| | |
| node.vm.box = "puppetlabs/ubuntu-14.04-64-nocm" | |
| node.vm.hostname = 'agent' | |
| node.vm.network :private_network, :ip => '192.168.23.4' | |
| node.vm.provision :hosts | |
| node.vm.provision :shell, :inline => "curl -k https://master.localdomain:8140/packages/current/install.bash | sudo bash" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment