terraform-provider-gitea/examples/resources/gitea_team/resource.tf

22 lines
502 B
Terraform
Raw Permalink Normal View History

resource "gitea_org" "test_org" {
name = "test-org"
}
2022-06-25 22:18:20 +00:00
resource "gitea_user" "test" {
username = "test"
login_name = "test"
password = "Geheim1!"
email = "test@user.dev"
must_change_password = false
admin = true
}
resource "gitea_team" "test_team" {
2022-06-25 22:18:20 +00:00
name = "Devs"
organisation = gitea_org.test_org.name
2022-06-25 22:18:20 +00:00
description = "Devs of Test Org"
permission = "write"
members = [gitea_user.test.username]
}