Created
November 29, 2016 21:09
-
-
Save abrader/53abc14dfe58112f36b29f9236ad5cd4 to your computer and use it in GitHub Desktop.
Basic Vagrant configuration file
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) 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 "master" do |master| | |
| master.vm.host_name = "master.puppetlabs.vm" | |
| master.vm.box = "puppetlabs/centos-6.6-64-nocm" | |
| master.vm.network "private_network", ip: "172.16.5.20" | |
| master.vm.provision :hosts | |
| master.vm.provider :vmware_fusion do |v| | |
| v.vmx["memsize"] = "2048" | |
| end | |
| master.vm.provider "virtualbox" do |v| | |
| v.customize ["modifyvm", :id, "--memory", "2048"] | |
| end | |
| end | |
| config.vm.define "agent2016" do |client| | |
| client.vm.host_name = "centos7-agent4.puppetlabs.vm" | |
| client.vm.box = "puppetlabs/centos-7.2-64-nocm" | |
| client.vm.network "private_network", ip: "172.16.5.21" | |
| client.vm.provision :hosts | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment