Closed amyers22 closed 1 year ago
Thanks for the Feature Request, @amyers22.
Are you able to share a sanitized code sample for testing purposes?
@amyers22: A quick reminder that Iām waiting on you for additional information; please above. Thanks.
Not currently. This was more around the ability for the path to be set with something like fdesetup status
and if its not on then the policy didnt complete. I know there are file paths to check for FileVault, but this would just be an example of a command output I would want to compare to.
@amyers22 and @mbracco1973:
Please test-drive 1.6.0-rc1
.
NOTES:
policy_array
's path
has been replaced with validation
validation
should not be blank; use None
instead (Example here.)confirmPolicyExecution
function validates if the policy needs to be executedvalidatePolicyResult
function validates if the policy succeeded
@amyers22 and @mbracco1973:
Addresses Issue No. 21
confirmPolicyExecution
function confirms if the policy needs to be executedvalidatePolicyResult
function validates if the policy succeededpolicy_array
's path
has been replaced with validation
validation
must be one of the following values:
"/Applications/Microsoft Teams.app/Contents/Info.plist"
)Local
(for local validation within the Setup Your Mac script; example here and here)Remote
(for remote validation via a Jamf Pro policies with single-script payloads; example validation script here, with code here and here.)None
(for triggers which don't require validation, for example: recon
as shown here)I dont deploy Sophos or GlobalProtect, but the FileVault validation works great!
Thanks for confirming, @amyers22.
Addressed in Setup Your Mac (1.6.0).
Currently the
"path":
inpolicy_array
is configured to look for a file path for verification thelistitem
completed. Would it be possible to add acommand
option for verification based on its output?https://github.com/dan-snelson/dialog-scripts/blob/5864bb613e1eda306bf5a0f553dc945cb59ea2fa/Setup%20Your%20Mac/Setup-Your-Mac-via-Dialog.bash#L1235-L1247