diff --git a/lib/templates/Vagrantfile.erb b/lib/templates/Vagrantfile.erb index ae9a34f43..4c24bf583 100644 --- a/lib/templates/Vagrantfile.erb +++ b/lib/templates/Vagrantfile.erb @@ -304,13 +304,13 @@ when "proxmox" # nothing } <% end -%> <%=module_name%>.module_path = "<%="puppet/#{system.name}/modules"%>" - <% if selected_module.attributes['platform'].first.downcase == 'windows' %> - <%=module_name%>.temp_dir = "/cygdrive/c/vagrant/" - <% else %> - <%=module_name%>.environment_path = "environments/" - <%=module_name%>.environment_variables = {'RUBYOPT' => '-W0'} - <%=module_name%>.environment = "production" - <% end %> +<% if selected_module.attributes['platform'].first.downcase == 'windows' || @base_template =~ /win/i %> + <%=module_name%>.temp_dir = "/cygdrive/c/vagrant/" +<% else -%> + <%=module_name%>.environment_path = "environments/" + <%=module_name%>.environment_variables = {'RUBYOPT' => '-W0'} + <%=module_name%>.environment = "production" +<% end -%> <%=module_name%>.synced_folder_type = "rsync" <%=module_name%>.manifests_path = "<%="puppet/#{system.name}/modules/#{selected_module.module_path_end}"%>" <%=module_name%>.manifest_file = "<%="#{selected_module.module_path_end}.pp"%>"