Sha256: c05db76e285e89bcb85d384babc0dcd94c43a3c5cf22f082597c71277086ed84
Contents?: true
Size: 1.59 KB
Versions: 2
Compression:
Stored size: 1.59 KB
Contents
Vagrant.configure("2") do |c| c.vm.box = "<%= config[:box] %>" c.vm.box_url = "<%= config[:box_url] %>" <% if config[:vm_hostname] %> c.vm.hostname = "<%= config[:vm_hostname] %>" <% end %> <% if config[:guest] %> c.vm.guest = "<%= config[:guest] %>" <% end %> c.vm.communicator = 'winrm' <% if config[:winrm_username] %> c.winrm.username = "<%= config[:winrm_username] %>" <% end %> <% if config[:winrm_password] %> c.winrm.password = "<%= config[:winrm_password] %>" <% end %> <% if config[:winrm_port] %> c.winrm.port = <%= config[:winrm_port] %> <% end %> <% config[:custom_settings].each do |key, value| value = "\"#{value}\"" if [TrueClass,FalseClass,Fixnum].include? value.class %> c.<%= key %> = "<%= value %>" <% end %> <% Array(config[:network]).each do |opts| %> c.vm.network(:<%= opts[0] %>, <%= opts[1..-1].join(", ") %>) <% end %> c.vm.synced_folder ".", "/vagrant", disabled: true <% config[:synced_folders].each do |source, destination, options| %> c.vm.synced_folder "<%= source %>", "<%= destination %>", <%= options %> <% end %> c.vm.provider :<%= config[:provider] %> do |p| <% config[:customize].each do |key, value| %> <% case config[:provider] when "virtualbox" %> p.customize ["modifyvm", :id, "--<%= key %>", "<%= value %>"] <% when "rackspace", "softlayer" %> p.<%= key %> = "<%= value%>" <% when /^vmware_/ %> <% if key == :memory %> <% unless config[:customize].include?(:memsize) %> p.vmx["memsize"] = "<%= value %>" <% end %> <% else %> p.vmx["<%= key %>"] = "<%= value %>" <% end %> <% end %> <% end %> end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kitchen-vagrant_winrm-0.3.0 | templates/Vagrantfile.erb |
kitchen-vagrant_winrm-0.2.2 | templates/Vagrantfile.erb |