You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-4
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,25 @@
1
1
# applocker
2
2
3
-
A Puppet module which configures applocker on Windows (Application whitelisting). For information about applocker see [here][2]
3
+
A Puppet module which configures applocker on Windows (Application whitelisting). For information about applocker see [here][2].
4
4
5
5
## Setup requirements
6
6
7
-
benjaminrobertson-applocker requires the xml-simple ruby gem installed on the Puppet Primary server. Install by running `puppetserver gem install xml-simple` as root on the Puppet Primary server. If the gem is not installed the module will not work.
7
+
benjaminrobertson-applocker requires the xml-simple ruby gem installed on the Puppet Primary server, compilers and replica. The module will not function without this gem. It can be installed using the following methods.
8
8
9
-
**Note:** When Puppet attempts to enable applocker service for the first time, this error will be seen in the Puppet logs. `Error: Cannot enable AppIDSvc, error was: undefined method 'windows' for Puppet::Util:Module` Applocker is running regardless of this error.
9
+
### Via Puppet manifest
10
+
11
+
Applocker module since 1.0.0 includes a Puppet class to install the xml-simple gem on your Puppet infrastructure.
12
+
13
+
1. Within the PE console, navigate to "Node Groups".
14
+
1. Locate the "PE Infrastructure Agent" node group and click into it. **Hint:** its under "All Nodes\PE Infrastructure\PE Agent".
15
+
1. Under the classes tab, add the class "applocker::primary::gem_installer". Commit the change.
16
+
1. Run Puppet on every PE infrastructure component. **Note:** This will restart the pe-puppetserver.
17
+
18
+
**Note:** The above instructions will only work if your Puppet Enterprise infrastructure has internet access or access to ruby gems.
19
+
20
+
### Manually via command line
21
+
22
+
1. Install by running `puppetserver gem install xml-simple` as root on the Puppet Primary server and other PE infrastructure components.
I suggest applying applocker policies in 'AuditOnly' mode (modules default). Use Windows event viewer to check for unexpected applocker denies. [EventId's][3]
31
44
45
+
**Note:** When Puppet attempts to enable applocker service for the first time, this error will be seen in the Puppet logs. `Error: Cannot enable AppIDSvc, error was: undefined method 'windows' for Puppet::Util:Module` Applocker is running regardless of this error.
46
+
32
47
## Usage
33
48
34
49
Include applocker module in Puppet manifest.
@@ -255,7 +270,7 @@ Applocker rules can be enabled or disabled by setting Enum['Enabled','AuditOnly'
255
270
256
271
## Limitations
257
272
258
-
* Developed on Puppet Enterprise 2021.7.6and Windows 2019
273
+
* Developed and tested with Puppet Enterprise 2021.7.6, 2023.8.0 and Windows 2019 and 2022.
259
274
* Expected to work with all modern versions of Puppet and Windows.
0 commit comments