mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-22 11:48:17 +00:00
# Conflicts: # lib/batch/batch_secgen.rb # lib/readers/system_reader.rb # lib/schemas/scenario_schema.xsd # lib/templates/Puppetfile.erb # modules/generators/structured_content/metactf_challenge/secgen_metadata.xml # modules/utilities/unix/ctf/metactf/manifests/configure.pp # modules/utilities/unix/ctf/metactf/manifests/install.pp
23 lines
948 B
Plaintext
23 lines
948 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.25.1' # stdlib enables parsejson() in manifests and other useful functions
|
|
mod 'puppetlabs-concat', '5.2.0'
|
|
mod 'puppetlabs-vcsrepo', '2.0.0'
|
|
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 -%>
|