Update 3 files
- /home/.chezmoiscripts/universal/run_onchange_before_03-jumpcloud.sh.tmpl - /home/.chezmoiscripts/universal/run_onchange_before_03-jumpcloud-linux.sh.tmpl - /home/.chezmoiscripts/windows/run_onchange_before_03-jumpcloud.ps1.tmpl
This commit is contained in:
parent
fefb690486
commit
0c560b8c89
2 changed files with 9 additions and 3 deletions
|
@ -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)
|
|
@ -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 -}}
|
||||
{{ end -}}
|
Loading…
Reference in a new issue