Created
July 27, 2012 08:03
-
-
Save jkrems/3186748 to your computer and use it in GitHub Desktop.
Simple vagrant setup with debian and puppet
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 : | |
Vagrant::Config.run do |config| | |
# Map NFS uid/gid to current user. This can be used to create a | |
# user inside the VM with matching uid/gid which makes file access | |
# a lot easier. | |
config.nfs.map_uid = Process.uid | |
config.nfs.map_gid = Process.gid | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "debian64" | |
# The url from where the 'config.vm.box' box will be fetched if it | |
# doesn't already exist on the user's system. | |
config.vm.box_url = "http://dl.dropbox.com/u/937870/VMs/squeeze64.box" | |
# Boot with a GUI so you can see the screen. (Default is headless) | |
# config.vm.boot_mode = :gui | |
# Assign this VM to a host-only network IP, allowing you to access it | |
# via the IP. Host-only networks can talk to the host machine as well as | |
# any other machines on the same network, but cannot be accessed (through this | |
# network interface) by any external networks. | |
config.vm.network :hostonly, "10.11.13.11" | |
# Share an additional folder to the guest VM. The first argument is | |
# an identifier, the second is the path on the guest to mount the | |
# folder, and the third is the path on the host to the actual folder. | |
config.vm.share_folder "project-root", "/project", ".", | |
:create => true, :nfs => true | |
config.vm.provision :puppet, :facter => { "host_uid" => config.nfs.map_uid, "host_gid" => config.nfs.map_gid, } do |puppet| | |
# puppet.options = "--verbose --debug" | |
puppet.module_path = ".puppet/modules" | |
puppet.manifests_path = ".puppet/manifests" | |
puppet.manifest_file = "main.pp" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the user map with nfs!!!!!! Was seaching so bad for this doc.