-
Notifications
You must be signed in to change notification settings - Fork 0
/
Works.Chrome.sr.jamf.policy.recipe
72 lines (69 loc) · 2.27 KB
/
Works.Chrome.sr.jamf.policy.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>This recipe downloads _____, packages it, then uploads the pkg to your Jamf Pro Server/Distribution Point
and creates/updates the policy that deploys it.
The server/share details must be set using variables set in the environment or specified in your override
(see https://github.com/grahampugh/jamf-upload/wiki/JamfUploader-AutoPkg-Processors).
The grahampugh-recipes repo is required.
Note that the (Package) CATEGORY, GROUP_NAME, and POLICY_CATEGORY specified by the Input variables
must each exist on the server, otherwise the recipe will fail. Values for SITE and GROUP_NAME are
requested in the Input dictionary so that they may be used within the POLICY_TEMPLATE specified.
</string>
<key>Identifier</key>
<string>com.github.smr1619.Chrome.sr.jamf.policy.recipe</string>
<key>Input</key>
<dict>
<key>CATEGORY</key>
<string>Autopkgr_Uploads</string>
<key>GROUP_NAME</key>
<string>Monthly Patching - Google Chrome Update</string>
<key>POLICY_CATEGORY</key>
<string>%CATEGORY%</string>
<key>POLICY_NAME</key>
<string>Update Google Chrome</string>
<key>POLICY_TEMPLATE</key>
<string>Policy_Test.xml</string>
</dict>
<key>MinimumVersion</key>
<string>2.0</string>
<key>ParentRecipe</key>
<string>com.github.autopkg.pkg.googlechrome</string>
<key>Process</key>
<array>
<dict>
<key>Processor</key>
<string>com.github.grahampugh.jamf-upload.processors/JamfPackageUploader</string>
<key>Arguments</key>
<dict>
<key>pkg_category</key>
<string>%CATEGORY%</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>StopProcessingIf</string>
<key>Arguments</key>
<dict>
<key>predicate</key>
<string>pkg_uploaded == False</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>com.github.grahampugh.jamf-upload.processors/JamfPolicyUploader</string>
<key>Arguments</key>
<dict>
<key>policy_name</key>
<string>%POLICY_NAME%</string>
<key>policy_template</key>
<string>%POLICY_TEMPLATE%</string>
<key>replace_policy</key>
<string>True</string>
</dict>
</dict>
</array>
</dict>
</plist>