applocker
: Set applocker rules for windowsapplocker::primary::gem_installer
: Installs XML simple gem on primary serverapplocker::service
: Starts applocker service
applocker::compare_rules
: Compares Windows applocker rules.applocker::extract_rules
: Extract applocker rulesapplocker::get_id
: Get ID of existing applocker rules. If no existing rule by that name, a new hash is generated.applocker::hash_toxml
: Convert hash to xmlapplocker::xml_tohash
: XML to hash
Configures applocker rules for windows. See readme on how to structure applocker rules.
lint:ignore:140chars
include applocker
The following parameters are available in the applocker
class:
exec_applocker_rules
msi_applocker_rules
appx_applocker_rules
script_applocker_rules
dll_applocker_rules
executable_rules
msi_rules
dll_rules
script_rules
packaged_app_rules
start_service
Data type: Hash
Exec applocker rules to configure.
Default value: {}
Data type: Hash
msi applocker rules to configure.
Default value: {}
Data type: Hash
Packaged app rules to configure.
Default value: {}
Data type: Hash
scipt applocker rules to configure.
Default value: {}
Data type: Hash
dll applocker rules to configure.
Default value: {}
Data type: Enum['Enabled','AuditOnly']
Mode for executable rules, Enum['Enabled','AuditOnly'] Default: AuditOnly.
Default value: 'AuditOnly'
Data type: Enum['Enabled','AuditOnly']
Mode for msi rules, Enum['Enabled','AuditOnly'] Default: AuditOnly.
Default value: 'AuditOnly'
Data type: Enum['Enabled','AuditOnly']
Mode for dll rules, Enum['Enabled','AuditOnly'] Default: AuditOnly.
Default value: 'AuditOnly'
Data type: Enum['Enabled','AuditOnly']
Mode for script rules, Enum['Enabled','AuditOnly'] Default: AuditOnly.
Default value: 'AuditOnly'
Data type: Enum['Enabled','AuditOnly']
Mode for packaged app rules, Enum['Enabled','AuditOnly'] Default: AuditOnly.
Default value: 'AuditOnly'
Data type: Boolean
Whether to start the applocker service. Default: true
Default value: true
Installs XML simple gem on primary server
include applocker::primary::gem_installer
Starts applocker service
private class
Type: Ruby 4.x API
Compares Windows applocker rules.
Compares Windows applocker rules.
Returns: Hash
Returns true if match, if no match, false along with which rule failed to match.
Data type: Hash
Existing rules from a host
Data type: Hash
Desired applocker rules from Puppet manifest.
Type: Ruby 4.x API
Extract applocker rules
Extract applocker rules
Returns: Hash
Hash of all applocker rules in policy along with the rule hash.
Data type: Hash
Applocker rules to extract
Type: Ruby 4.x API
Get ID of existing applocker rules. If no existing rule by that name, a new hash is generated.
Get ID of existing applocker rules. If no existing rule by that name, a new hash is generated.
Returns: Hash
Hash with rulename to rule mapping.
Data type: Hash
Applocker rules to check from Puppet catalog
Data type: Hash
Name to ID mapping to check.
Type: Ruby 4.x API
Convert hash to xml
Convert hash to xml
Returns: String
XML string
Data type: Hash
Hash to convert to XML
Type: Ruby 4.x API
XML to hash
XML to hash
Returns: Hash
Hash converted from XML
Data type: String
XML to convert to hash