mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-22 19:58:03 +00:00
21 lines
881 B
Plaintext
21 lines
881 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 'puppetlabs-apt', '7.4.0' # pin apt to 7.4.0 as current version is incompatible with our base boxes
|
|
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 -%>
|