-
Notifications
You must be signed in to change notification settings - Fork 1
/
.chezmoi.toml.tmpl
70 lines (58 loc) · 2.27 KB
/
.chezmoi.toml.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{{- $home_domain_name := get . "home_domain_name" -}}
{{- if not $home_domain_name -}}
{{- $home_domain_name = promptString "Home Domain Name (e.g. foo.com)" -}}
{{- end -}}
{{- $home_fileserver_hostname := get . "home_fileserver_hostname" -}}
{{- if not $home_fileserver_hostname -}}
{{- $home_fileserver_hostname = promptString "Home Fileserver Hostname (short name)" -}}
{{- end -}}
{{- $email := get . "email" -}}
{{- if not $email -}}
{{- $email = promptString "Email" -}}
{{- end -}}
{{- $gitemail := get . "gitemail" -}}
{{- if not $gitemail -}}
{{- $gitemail = promptString "Git Email" -}}
{{- end -}}
{{- $category := get . "category" -}}
{{- if not $category -}}
{{- $category = promptString "Category: [home, work]" -}}
{{- end -}}
{{- $aws_account_number := get . "aws_account_number" -}}
{{- if not $aws_account_number -}}
{{- $aws_account_number = promptString "AWS Account Number" -}}
{{- end -}}
{{- $piknik_role := get . "piknik_role" -}}
{{- if not $piknik_role -}}
{{- $piknik_role = promptString "Piknik role (e.g client, server, hybrid)" -}}
{{- end -}}
{{- $github_enterprise_host := get . "github_enterprise_host" -}}
{{- $github_enterprise_oauth_token := get . "github_enterprise_oauth_token" -}}
{{- $vault_url := get . "vault_url" -}}
{{- $jira_url := get . "jira_url" -}}
{{- if eq $category "work" -}}
{{- if not $github_enterprise_host -}}
{{- $github_enterprise_host = promptString "GitHub Enterprise Host" -}}
{{- end -}}
{{- if not $github_enterprise_oauth_token -}}
{{- $github_enterprise_oauth_token = promptString "GitHub Enterprise Oauth Token" -}}
{{- end -}}
{{- if not $vault_url -}}
{{- $vault_url = promptString "Vault URL" -}}
{{- end -}}
{{- if not $jira_url -}}
{{- $jira_url = promptString "JIRA URL" -}}
{{- end -}}
{{- end -}}
[data]
home_domain_name = "{{ $home_domain_name }}"
home_fileserver_hostname = "{{ $home_fileserver_hostname }}"
email = "{{ $email }}"
gitemail = "{{ $gitemail }}"
category = "{{ $category }}"
github_enterprise_host = "{{ $github_enterprise_host }}"
github_enterprise_oauth_token = "{{ $github_enterprise_oauth_token }}"
aws_account_number = "{{ $aws_account_number }}"
piknik_role = "{{ $piknik_role }}"
vault_url = "{{ $vault_url }}"
jira_url = "{{ $jira_url }}"