mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-20 13:50:45 +00:00
fix windows rsync of modules
This commit is contained in:
@@ -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"%>"
|
||||
|
||||
Reference in New Issue
Block a user