This commit is contained in:
Brian Zalewski 2023-07-07 08:45:25 +00:00
parent d5655ae7b1
commit 31c301e222
3 changed files with 8 additions and 7 deletions

View file

@ -1,5 +1,6 @@
{{- $cloudflareR2AccountId := (default "84fa0d1b16ff8086dd958c468ce7fd59" (env "CLOUDFLARE_R2_ID")) -}}
{{- $cloudflareUsername := (default "brian@megabyte.space" (env "CLOUDFLARE_USERNAME")) -}}
{{- $cloudflareTeamsOrg := (default "manhattan" (env "CLOUDFLARE_TEAMS_ORG")) -}}
{{- $desktopSession := true -}}
{{- $domain := (default "megabyte.space" (env "PUBLIC_SERVICES_DOMAIN")) -}}
{{- $email := (default "brian@megabyte.space" (env "PRIMARY_EMAIL")) -}}
@ -127,6 +128,8 @@ gpg:
data:
host:
arch: "{{ .chezmoi.arch }}"
cloudflare:
teamsOrg: "{{ $cloudflareTeamsOrg }}"
cpu:
cores: "{{ $cpuCores }}"
threads: "{{ $cpuThreads }}"
@ -144,7 +147,7 @@ data:
- glurl: "https://gitlab.com/"
runnerDescription: "Docker executor"
runnerImage: "alpine:latest"
runnerTags: ""
runnerTags: "alpine,linux"
- glurl: "https://gitlab.com/"
baseVM: "debian"
runnerDescription: "VirtualBox executor - Debian, OpenJDK 20"

View file

@ -7,11 +7,11 @@
<key>onboarding</key>
<false />
<key>organization</key>
<string>manhattan</string>
<string>{{ .host.cloudflare.teamsOrg }}</string>
<key>service_mode</key>
<string>warp</string>
<key>support_url</key>
<string>https://megabyte.space</string>
<string>https://{{ .host.domain }}</string>
<key>auth_client_id</key>
<string>{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (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>

View file

@ -4,14 +4,12 @@
<true />
<key>onboarding</key>
<false />
<key>auto_connect</key>
<interger>60</interger>
<key>organization</key>
<string>manhattan</string>
<string>{{ .host.cloudflare.teamsOrg }}</string>
<key>service_mode</key>
<string>warp</string>
<key>support_url</key>
<string>https://megabyte.space</string>
<string>https://{{ .host.domain }}</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>