Update .env, dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl, dotfiles/.local/share/chezmoi/home/private_dot_config/shell/private_dot_private, dotfiles/.local/share/chezmoi/home/private_dot_config/ghorg/conf.yaml.tmpl
This commit is contained in:
parent
69a2244d11
commit
4f4ec17b1e
4 changed files with 22 additions and 13 deletions
7
.env
7
.env
|
@ -90,10 +90,3 @@ WAZUH_AGENT_GROUP
|
||||||
Assigns the agent to one or more existing groups (separated by commas). See agent_groups.
|
Assigns the agent to one or more existing groups (separated by commas). See agent_groups.
|
||||||
ENROLLMENT_DELAY
|
ENROLLMENT_DELAY
|
||||||
Assigns the time that agentd should wait after a successful registration. See delay_after_enrollment.
|
Assigns the time that agentd should wait after a successful registration. See delay_after_enrollment.
|
||||||
|
|
||||||
|
|
||||||
### ghorg
|
|
||||||
GHORG_GITHUB_TOKEN
|
|
||||||
|
|
||||||
export LEXICON_CLOUDFLARE_USERNAME="myusername@example.com"
|
|
||||||
export LEXICON_CLOUDFLARE_TOKEN="cloudflare-api-token"
|
|
||||||
|
|
|
@ -5,8 +5,10 @@
|
||||||
{{- $gmailAddress := "noreply@gmail.com" }}
|
{{- $gmailAddress := "noreply@gmail.com" }}
|
||||||
{{- $gmailAddressAppPassword := "" }}
|
{{- $gmailAddressAppPassword := "" }}
|
||||||
{{- $domain := "megabyte.space" }}
|
{{- $domain := "megabyte.space" }}
|
||||||
{{- $githubToken := "" }}
|
{{- $cloudflareUsername := "noreply@megabyte.space" }}
|
||||||
{{- $gitlabToken := "" }}
|
{{- $cloudflareToken := "" }}
|
||||||
|
{{- $githubReadToken := "" }}
|
||||||
|
{{- $gitlabReadToken := "" }}
|
||||||
{{- $ngrokAuthToken := "" }}
|
{{- $ngrokAuthToken := "" }}
|
||||||
{{- $slackApiToken := "" }}
|
{{- $slackApiToken := "" }}
|
||||||
{{- $tabbySyncToken := "" }}
|
{{- $tabbySyncToken := "" }}
|
||||||
|
@ -90,6 +92,10 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- $domain = promptStringOnce $data.user "domain" "Domain" $domain -}}
|
{{- $domain = promptStringOnce $data.user "domain" "Domain" $domain -}}
|
||||||
|
{{- $cloudflareUsername = promptStringOnce $data.cloudflareUsername "cloudflareUsername" "CloudFlare E-Mail" $email -}}
|
||||||
|
{{- $cloudflareToken = promptStringOnce $data.cloudflareToken "cloudflareToken" "CloudFlare API Token" $cloudflareToken -}}
|
||||||
|
{{- $gitlabReadToken = promptStringOnce $data.gitlabReadToken "gitlabReadToken" "GitLab read-only token (See: https://github.com/gabrie30/ghorg#scm-provider-setup)" $gitlabReadToken }}
|
||||||
|
{{- $githubReadToken = promptStringOnce $data.githubReadToken "githubReadToken" "GitHub read-only token (See: https://github.com/gabrie30/ghorg#scm-provider-setup)" $githubReadToken }}
|
||||||
{{- $gmailAddress = promptStringOnce $data.user "gmailAddress" "G-mail address" $gmailAddress -}}
|
{{- $gmailAddress = promptStringOnce $data.user "gmailAddress" "G-mail address" $gmailAddress -}}
|
||||||
{{- $gmailAddressAppPassword = promptStringOnce $data.user "gmailAddressAppPassword" "G-mail app password" $gmailAddressAppPassword -}}
|
{{- $gmailAddressAppPassword = promptStringOnce $data.user "gmailAddressAppPassword" "G-mail app password" $gmailAddressAppPassword -}}
|
||||||
{{- $ngrokAuthToken = promptStringOnce $data.user "ngrokAuthToken" "Ngrok authentication token" $ngrokAuthToken -}}
|
{{- $ngrokAuthToken = promptStringOnce $data.user "ngrokAuthToken" "Ngrok authentication token" $ngrokAuthToken -}}
|
||||||
|
@ -132,8 +138,9 @@ data:
|
||||||
gmailAddressAppPassword: "{{ $gmailAddressAppPassword }}"
|
gmailAddressAppPassword: "{{ $gmailAddressAppPassword }}"
|
||||||
locale: "en_US"
|
locale: "en_US"
|
||||||
timezone: "America/New_York"
|
timezone: "America/New_York"
|
||||||
GITHUB_TOKEN: "{{ $githubToken }}"
|
CLOUDFLARE_USERNAME: "{{ $cloudflareUsername }}"
|
||||||
GITLAB_TOKEN: "{{ $gitlabToken }}"
|
GITHUB_READ_TOKEN: "{{ $githubReadToken }}"
|
||||||
|
GITLAB_READ_TOKEN: "{{ $gitlabReadToken }}"
|
||||||
NGROK_AUTH_TOKEN: "{{ $ngrokAuthToken }}"
|
NGROK_AUTH_TOKEN: "{{ $ngrokAuthToken }}"
|
||||||
SLACK_API_TOKEN: "{{ $slackApiToken }}"
|
SLACK_API_TOKEN: "{{ $slackApiToken }}"
|
||||||
TABBY_SYNC_TOKEN: "{{ $tabbySyncToken }}"
|
TABBY_SYNC_TOKEN: "{{ $tabbySyncToken }}"
|
||||||
|
@ -143,6 +150,9 @@ diff:
|
||||||
git:
|
git:
|
||||||
autoCommit: true
|
autoCommit: true
|
||||||
autoPush: true
|
autoPush: true
|
||||||
|
scriptEnv:
|
||||||
|
LEXICON_CLOUDFLARE_USERNAME: "{{ $cloudflareUsername }}"
|
||||||
|
LEXICON_CLOUDFLARE_TOKEN: "{{ $cloudflareToken }}"
|
||||||
textconv:
|
textconv:
|
||||||
- pattern: "**/*.plist"
|
- pattern: "**/*.plist"
|
||||||
command: "plutil"
|
command: "plutil"
|
||||||
|
|
|
@ -149,7 +149,7 @@ GHORG_EXIT_CODE_ON_CLONE_ISSUES: 1
|
||||||
|
|
||||||
# Add your GitHub token
|
# Add your GitHub token
|
||||||
# flag (--token, -t) eg: --token=bGVhdmUgYSBjb21tZW50IG9uIGlzc3VlIDY2
|
# flag (--token, -t) eg: --token=bGVhdmUgYSBjb21tZW50IG9uIGlzc3VlIDY2
|
||||||
GHORG_GITHUB_TOKEN: {{ .user.GITHUB_TOKEN }}
|
GHORG_GITHUB_TOKEN: {{ .user.GITHUB_READ_TOKEN }}
|
||||||
|
|
||||||
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
# |G|I|T|L|A|B| |S|P|E|C|I|F|I|C|
|
# |G|I|T|L|A|B| |S|P|E|C|I|F|I|C|
|
||||||
|
@ -157,7 +157,7 @@ GHORG_GITHUB_TOKEN: {{ .user.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# Add your GitLab token
|
# Add your GitLab token
|
||||||
# flag (--token, -t) eg: --token=bGVhdmUgYSBjb21tZW50IG9uIGlzc3VlIDY2
|
# flag (--token, -t) eg: --token=bGVhdmUgYSBjb21tZW50IG9uIGlzc3VlIDY2
|
||||||
GHORG_GITLAB_TOKEN: {{ .user.GITLAB_TOKEN }}
|
GHORG_GITLAB_TOKEN: {{ .user.GITLAB_READ_TOKEN }}
|
||||||
|
|
||||||
# clones repos in a directory structure that matches gitlab namespaces eg company/unit/subunit/app would clone into ghorg/org/unit/subunit/app
|
# clones repos in a directory structure that matches gitlab namespaces eg company/unit/subunit/app would clone into ghorg/org/unit/subunit/app
|
||||||
# flag (--preserve-dir)
|
# flag (--preserve-dir)
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
export LEXICON_CLOUDFLARE_USERNAME={{ .user.CLOUDFLARE_USERNAME }}
|
||||||
|
|
||||||
|
# TODO - Secure following:
|
||||||
|
# export LEXICON_CLOUDFLARE_TOKEN=""
|
Loading…
Reference in a new issue