ssg.build_profile module

class ssg.build_profile.RuleStats(rid=None, roval=None, rsce=None, rbash_fix=None, ransible_fix=None, rignition_fix=None, rkubernetes_fix=None, rpuppet_fix=None, ranaconda_fix=None, rcce=None, stig_id=None, cis_ref=None, hipaa_ref=None, anssi_ref=None, ospp_ref=None, cui_ref=None)[source]

Bases: object

Class representing the content of a rule for statistics generation purposes.

class ssg.build_profile.XCCDFBenchmark(filepath, product='')[source]

Bases: object

Class for processing an XCCDF benchmark to generate statistics about the profiles contained within it.

console_print(content, width)[source]

Prints the ‘content’ array left aligned, each time 45 characters long, each row ‘width’ characters wide

get_profile_stats(profile)[source]

Obtain statistics for the profile

show_all_profile_stats(options)[source]
show_profile_stats(profile, options)[source]

Displays statistics for specific profile

ssg.build_profile.make_name_to_profile_mapping(profile_files, env_yaml, product_cpes)[source]