mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 19:28:02 +00:00
20 lines
776 B
Plaintext
20 lines
776 B
Plaintext
#!/usr/bin/env ruby
|
|
#^syntax detection
|
|
|
|
# This file was generated by SecGen
|
|
# <%= @time %>
|
|
# Based on <%= @scenario %>
|
|
# These modules are for system: <%= @currently_processing_system.name %>
|
|
|
|
forge "https://forgeapi.puppetlabs.com"
|
|
|
|
mod 'puppetlabs-stdlib', '4.24.0' # stdlib enables parsejson() in manifests and other useful functions
|
|
mod 'SecGen-secgen_functions', :path => '<%= SECGEN_FUNCTIONS_PUPPET_DIR %>'
|
|
|
|
<% @currently_processing_system.module_selections.each do |selected_module| -%>
|
|
<% case selected_module.module_type
|
|
when 'vulnerability', 'service', 'utility', 'build' -%>
|
|
mod 'SecGen-<%= selected_module.module_path_name %>/<%= selected_module.module_path_end %>', :path => '<%="#{ROOT_DIR}/#{selected_module.module_path}"%>'
|
|
<% end -%>
|
|
<% end -%>
|