Created
August 7, 2014 23:33
-
-
Save vinyar/229c14017dbdfcd82c43 to your computer and use it in GitHub Desktop.
generic windows vagrant file (you dont actually need .rb)
This file contains 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 : | |
cookbook_name = "cookbooking" | |
box = "win2012r2-chef11.14.2-1" | |
box_url = "~/Documents/ISO_BOX_etc/win2012r2-chef11.14.2-1" | |
hostname = "windows2012r2" | |
Vagrant.configure("2") do |config| | |
config.vm.define cookbook_name do |config| | |
config.vm.box = box | |
config.vm.box_url = box_url | |
config.vm.hostname = hostname | |
config.vm.guest = :windows | |
config.windows.halt_timeout = 25 | |
config.winrm.username = "vagrant" | |
config.winrm.password = "vagrant" | |
# config.berkshelf.enabled = true | |
# config.cookbooks_path = '../' | |
#Set WinRM Timeout in seconds (Default 30) | |
config.winrm.timeout = 1800 | |
# config.vm.communicator = "winrm" | |
# Port forward WinRM and RDP | |
# config.vm.network :forwarded_port, guest: 3389, host: 3389, :name => "rdp", :auto => true | |
# config.vm.network :forwarded_port, guest: 5985, host: 5985, :name => "winrm", :auto => true | |
config.vm.provider :virtualbox do |vb| | |
vb.gui = true | |
vb.customize ["modifyvm",:id,"--memory","1500",'--clipboard', 'bidirectional'] | |
end | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = '../' | |
chef.log_level = :debug | |
chef.run_list = ["recipe[" + cookbook_name + "]"] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment