install.fairie/home/dot_config/warp/private_mdm.xml.tmpl
Brian Zalewski 21a87bd72d Latest
2023-07-07 15:28:57 +00:00

16 lines
841 B
Cheetah

{{ if eq .host.distro.family "linux" -}}
<dict>
<key>enable</key>
<true />
<key>onboarding</key>
<false />
<key>organization</key>
<string>{{ .host.cloudflare.teamsOrg }}</string>
<key>service_mode</key>
<string>warp</string>
<key>auth_client_id</key>
<string>{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "CLOUDFLARE_TEAMS_CLIENT_ID")) }}{{- includeTemplate "secrets/CLOUDFLARE_TEAMS_CLIENT_ID" | decrypt | trim -}}{{ else }}{{- env "CLOUDFLARE_TEAMS_CLIENT_ID" -}}{{ end }}</string>
<key>auth_client_secret</key>
<string>{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "CLOUDFLARE_TEAMS_CLIENT_SECRET")) }}{{- includeTemplate "secrets/CLOUDFLARE_TEAMS_CLIENT_SECRET" | decrypt | trim -}}{{ else }}{{- env "CLOUDFLARE_TEAMS_CLIENT_SECRET" -}}{{ end }}</string>
</dict>
{{ end -}}