Skip to content

Instantly share code, notes, and snippets.

@einyx
Created April 12, 2013 14:07
Show Gist options
  • Save einyx/5372271 to your computer and use it in GitHub Desktop.
Save einyx/5372271 to your computer and use it in GitHub Desktop.
Vagrantfile version 2 + puppet provisioning
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
puppetbase = "/Users/alessiogarofalo/puppet-playground/"
config.vm.define "box" do |config|
config.vm.box = "box"
config.vm.hostname = "box-1"
#config.vm.network :public_network
config.vm.network :private_network, ip: "172.30.0.1"
config.vm.synced_folder "./apps", "/var/apps"
config.vm.provision :puppet do |puppet|
puppet.manifest_file = "vm_greenleaf.pp"
puppet.manifests_path = puppetbase + "puppet/manifests/vagrant"
puppet.module_path = puppetbase + "puppet/modules"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment