-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopier.yaml
66 lines (53 loc) · 1.35 KB
/
copier.yaml
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
# Questions
accountname:
type: str
help: The name of the organization on GitHub
projectname:
type: str
help: The name of the project
description:
type: str
help: A short description of the project
reponame:
type: str
help: The name of the repository
default: "{{ projectname }}"
repourl:
type: str
help: The URL of the repository
default: "https://github.com/{{ accountname }}/{{ reponame }}"
backend:
type: str
help: The backend to use to store Terraform state
choices:
- local
- s3
- r2
default: local
statefile:
type: str
help: The path to the Terraform state file
default: terraform.tfstate
when: "{{ backend in ('local', 's3', 'r2') }}"
bucket:
type: str
help: The name of the bucket to store the Terraform state file
default: "{{ projectname }}"
when: "{{ backend in ('s3', 'r2') }}"
region:
type: str
help: The region of the bucket to store the Terraform state file
default: "{{ {'s3': 'us-east-1', 'r2': 'enam'}[backend] }}"
when: "{{ backend in ('s3', 'r2') }}"
docs:
type: bool
help: Whether to include a documentation site for the project
default: true
docsurl:
type: str
help: The URL of the documentation site for the project
default: "https://{{ accountname }}.github.io/{{ reponame }}"
when: "{{ docs }}"
# Configuration
_subdirectory: src
_answers_file: .copier-answers.yaml