Skip to content

Instantly share code, notes, and snippets.

@ringods
Created September 25, 2013 06:38
Show Gist options
  • Save ringods/6695889 to your computer and use it in GitHub Desktop.
Save ringods/6695889 to your computer and use it in GitHub Desktop.
Vagrantfile for my Windows 2008R2 with WinRM activated, Puppet installed via MSI and failing the run via vagrant-windows.
# 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|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "windows2008r2"
config.vm.guest = :windows
# Max time to wait for the guest to shutdown
config.windows.halt_timeout = 25
# Admin user name and password
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
# Port forward WinRM and RDP
config.vm.network :forwarded_port, guest: 3389, host: 3389
config.vm.network :forwarded_port, guest: 5985, host: 5985
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
config.vm.provider :virtualbox do |vb|
# Don't boot with headless mode
vb.gui = true
# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
# Puppet provisioning.
config.vm.provision :puppet do |puppet|
puppet.module_path = "modules"
puppet.manifests_path = "manifests"
puppet.manifest_file = "init.pp"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment