Skip to content

Commit 398d855

Browse files
committed
sample: implement settings repository (#27)
1 parent a649f4b commit 398d855

File tree

1 file changed

+31
-26
lines changed

1 file changed

+31
-26
lines changed

provision/generators/README.yaml

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ email:
3535
#logo: docs/logo.png
3636

3737
# License of this project
38-
license: 'Apache2'
38+
license: 'APACHE2'
3939

4040
# Canonical GitHub repo
4141
github_repo: hadenlabs/terraform-github-repository
@@ -67,41 +67,46 @@ usage: |-
6767
name = "repository-example"
6868
description = "github repository for repository"
6969
visibility = "public"
70-
70+
settings = {
71+
auto_init = true
72+
has_issues = true
73+
has_wiki = true
74+
has_projects = true
7175
}
76+
}
7277
73-
module "main_with_key" {
74-
source = "hadenlabs/repository/github"
75-
version = "0.4.0"
76-
77-
providers = {
78-
github = github
79-
}
78+
module "main_with_key" {
79+
source = "hadenlabs/repository/github"
80+
version = "0.4.0"
8081
81-
name = "repository-example-with-key"
82-
description = "github repository for repository"
83-
visibility = "public"
84-
key = "/usr/etc/key/user.pub"
85-
read_only = false
82+
providers = {
83+
github = github
8684
}
8785
88-
module "main_with_secrets" {
89-
source = "hadenlabs/repository/github"
90-
version = "0.4.0"
86+
name = "repository-example-with-key"
87+
description = "github repository for repository"
88+
visibility = "public"
89+
key = "/usr/etc/key/user.pub"
90+
read_only = false
91+
}
9192
92-
providers = {
93-
github = github
94-
}
93+
module "main_with_secrets" {
94+
source = "hadenlabs/repository/github"
95+
version = "0.4.0"
9596
96-
name = "repository-example-with-key"
97-
description = "github repository for repository"
98-
visibility = "public"
99-
secrets = {
100-
key= value
101-
}
97+
providers = {
98+
github = github
99+
}
102100
101+
name = "repository-example-with-key"
102+
description = "github repository for repository"
103+
visibility = "public"
104+
secrets = {
105+
key= value
103106
}
104107
108+
}
109+
105110
```
106111
107112
Full working example can be found in [example](./example) folder.

0 commit comments

Comments
 (0)