diff --git a/home/.chezmoiscripts/universal/run_onchange_before_03-jumpcloud.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_before_03-jumpcloud-linux.sh.tmpl similarity index 71% rename from home/.chezmoiscripts/universal/run_onchange_before_03-jumpcloud.sh.tmpl rename to home/.chezmoiscripts/universal/run_onchange_before_03-jumpcloud-linux.sh.tmpl index 646ba7a4..dc9dd3be 100644 --- a/home/.chezmoiscripts/universal/run_onchange_before_03-jumpcloud.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_before_03-jumpcloud-linux.sh.tmpl @@ -1,13 +1,19 @@ {{- if and (eq .host.distro.family "linux") (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (or (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "JUMPCLOUD_CONNECT_KEY")) (env "JUMPCLOUD_CONNECT_KEY")) -}} #!/usr/bin/env bash -# @file JumpCloud Device Enrollment -# @brief Enrolls the device as a JumpCloud asset if `JUMPCLOUD_CONNECT_KEY` is defined +# @file Linux JumpCloud Device Enrollment +# @brief Enrolls Linux devices as a JumpCloud assets if `JUMPCLOUD_CONNECT_KEY` is defined # @description # This script enrolls the device as a JumpCloud managed asset. The `JUMPCLOUD_CONNECT_KEY` secret should # be populated using one of the methods described in the [Secrets documentation](https://install.doctor/docs/customization/secrets). # # *Note: You should check out the supported systems before trying to enroll devices.* # +# ## JumpCloud on macOS +# +# macOS offers a native device management feature offered through Apple Business. It is the preferred +# method since it offers most of the desirable features (like remote wipe). The [JumpCloud MDM documentation](https://support.jumpcloud.com/support/s/article/Getting-Started-MDM) +# details the steps required to register macOS MDM profiles with JumpCloud. +# # ## Links # # * [JumpCloud device management requirements](https://support.jumpcloud.com/support/s/article/jumpcloud-agent-compatibility-system-requirements-and-impacts1) diff --git a/home/.chezmoiscripts/windows/run_onchange_before_03-jumpcloud.ps1.tmpl b/home/.chezmoiscripts/windows/run_onchange_before_03-jumpcloud.ps1.tmpl index cc3d00f7..f1319f1f 100644 --- a/home/.chezmoiscripts/windows/run_onchange_before_03-jumpcloud.ps1.tmpl +++ b/home/.chezmoiscripts/windows/run_onchange_before_03-jumpcloud.ps1.tmpl @@ -1,3 +1,3 @@ {{- if and (eq .host.distro.family "windows") (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (or (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "JUMPCLOUD_CONNECT_KEY")) (env "JUMPCLOUD_CONNECT_KEY")) -}} cd $env:temp | Invoke-Expression; Invoke-RestMethod -Method Get -URI https://raw.githubusercontent.com/TheJumpCloud/support/master/scripts/windows/InstallWindowsAgent.ps1 -OutFile InstallWindowsAgent.ps1 | Invoke-Expression; ./InstallWindowsAgent.ps1 -JumpCloudConnectKey "{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "JUMPCLOUD_CONNECT_KEY")) }}{{- includeTemplate "secrets/JUMPCLOUD_CONNECT_KEY" | decrypt -}}{{ else }}{{- env "JUMPCLOUD_CONNECT_KEY" -}}{{ end }}" -{{- end -}} \ No newline at end of file +{{ end -}} \ No newline at end of file