mirror of
https://git.uploadfilter24.eu/lerentis/terraform-provider-gitea.git
synced 2024-11-16 23:18:12 +00:00
2.4 KiB
2.4 KiB
page_title | subcategory | description |
---|---|---|
gitea_team Resource - terraform-provider-gitea | gitea_team manages Team that are part of an organisation. |
gitea_team (Resource)
gitea_team
manages Team that are part of an organisation.
Example Usage
resource "gitea_org" "test_org" {
name = "test-org"
}
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" {
name = "Devs"
organisation = gitea_org.test_org.name
description = "Devs of Test Org"
permission = "write"
members = [gitea_user.test.username]
}
resource "gitea_repository" "test" {
username = gitea_org.test_org.name
name = "test"
private = true
issue_labels = "Default"
license = "MIT"
gitignores = "Go"
}
resource "gitea_team" "test_team_restricted" {
name = "Restricted Devs"
organisation = gitea_org.test_org.name
description = "Restricted Devs of Test Org"
permission = "write"
members = [gitea_user.test.username]
include_all_repositories = false
repositories = [gitea_repository.test.name]
}
Schema
Required
name
(String) Name of the Teamorganisation
(String) The organisation which this Team is part of.
Optional
can_create_repos
(Boolean) Flag if the Teams members should be able to create Rpositories in the Organisationdescription
(String) Description of the Teaminclude_all_repositories
(Boolean) Flag if the Teams members should have access to all Repositories in the Organisationmembers
(List of String) List of Users that should be part of this teampermission
(String) Permissions associated with this Team Can benone
,read
,write
,admin
orowner
repositories
(List of String) List of Repositories that should be part of this teamunits
(String) List of types of Repositories that should be allowed to be created from Team members. Can berepo.code
,repo.issues
,repo.ext_issues
,repo.wiki
,repo.pulls
,repo.releases
,repo.projects
and/orrepo.ext_wiki
Read-Only
id
(String) The ID of this resource.