fix windows rsync of modules

This commit is contained in:
Z. Cliffe Schreuders
2023-08-02 01:39:56 +01:00
parent 6e43cffe4d
commit db4c35b337

View File

@@ -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"%>"