/
Support.jamf.recipe.yaml
86 lines (72 loc) · 3.67 KB
/
Support.jamf.recipe.yaml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Description: Uploads the pkg to the JSS, and creates a Self-Service Policy available to members of a Testing group.
Identifier: com.github.eth-its-recipes.jamf.Support
MinimumVersion: "2.3"
ParentRecipe: com.github.grahampugh.recipes.pkg.SupportApp
Input:
NAME: Support
POLICY_NAME: "%NAME% (Testing)"
SELFSERVICE_DISPLAY_NAME: "ETH Support Menu Bar App (Testing)"
PKG_CATEGORY: Tools & Accessories
SELFSERVICE_DESCRIPTION: |
The ETH Support app provides useful information about your system, as well as direct links to resources such as opening a support ticket, opening the Self Service app and gaining admin privileges via the Privileges app.
Version: %version%
Category: %PKG_CATEGORY%
TEST_VERSION_INELIGIBLE_GROUP_NAME: "%NAME% ineligible for test version"
TEST_VERSION_INELIGIBLE_GROUP_TEMPLATE: SmartGroup-test-version-ineligible.xml
minimum_os_version: "11.0"
TEST_VERSION_INSTALLED_GROUP_NAME: "%NAME% test version installed"
TEST_VERSION_INSTALLED_GROUP_TEMPLATE: SmartGroup-test-version-installed.xml
TESTING_GROUP_NAME: Testing
TESTING_GROUP_TEMPLATE: StaticGroup-testing.xml
TEST_USERS_GROUP_NAME: "%NAME% test users"
TEST_USERS_GROUP_TEMPLATE: SmartGroup-test-users.xml
POLICY_CATEGORY: Untested
INSTALL_BUTTON_TEXT: "Install %version%"
REINSTALL_BUTTON_TEXT: "Install %version%"
POLICY_TEMPLATE: Policy-untested-selfservice-OS-minimum.xml
SELFSERVICE_ICON: "ETH.png"
POLICY_RUN_COMMAND: "jamf policy -event 'Support App Customisation-install'; jamf policy -event 'SupportHelper-install'"
UPDATE_PREDICATE: "pkg_uploaded != True"
Process:
- Processor: com.github.grahampugh.recipes.commonprocessors/VersionRegexGenerator
- Processor: com.github.grahampugh.jamf-upload.processors/JamfCategoryUploader
Arguments:
category_name: "%PKG_CATEGORY%"
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader
Comment: This processor uploads the main package which is determined using the "main_pkg_path" variable that was set in the customisation pkg recipe.
Arguments:
pkg_category: "%PKG_CATEGORY%"
- Processor: com.github.grahampugh.recipes.commonprocessors/WritePkgResultToJson
- Processor: StopProcessingIf
Arguments:
predicate: "%UPDATE_PREDICATE%"
- Processor: com.github.grahampugh.jamf-upload.processors/JamfCategoryUploader
Arguments:
category_name: "%POLICY_CATEGORY%"
- Processor: com.github.grahampugh.jamf-upload.processors/JamfComputerGroupUploader
Arguments:
computergroup_template: "%TESTING_GROUP_TEMPLATE%"
computergroup_name: "%TESTING_GROUP_NAME%"
replace_group: "False"
- Processor: com.github.grahampugh.jamf-upload.processors/JamfComputerGroupUploader
Arguments:
computergroup_name: "%TEST_USERS_GROUP_NAME%"
computergroup_template: "%TEST_USERS_GROUP_TEMPLATE%"
replace_group: "False"
- Processor: com.github.grahampugh.jamf-upload.processors/JamfComputerGroupUploader
Arguments:
computergroup_name: "%TEST_VERSION_INSTALLED_GROUP_NAME%"
computergroup_template: "%TEST_VERSION_INSTALLED_GROUP_TEMPLATE%"
replace_group: "True"
- Processor: com.github.grahampugh.jamf-upload.processors/JamfComputerGroupUploader
Arguments:
computergroup_name: "%TEST_VERSION_INELIGIBLE_GROUP_NAME%"
computergroup_template: "%TEST_VERSION_INELIGIBLE_GROUP_TEMPLATE%"
replace_group: "True"
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPolicyUploader
Arguments:
policy_template: "%POLICY_TEMPLATE%"
policy_name: "%POLICY_NAME%"
icon: "%SELFSERVICE_ICON%"
replace_policy: "True"
- Processor: com.github.grahampugh.recipes.postprocessors/LastRecipeRunResult