page_title | subcategory | description |
---|---|---|
gitlab_group_project_file_template Resource - terraform-provider-gitlab |
The gitlab_group_project_file_template resource allows setting a project from which
custom file templates will be loaded. The project selected must be a direct child of the group identified.
For more information about which file types are available as templates, view
GitLab's documentation https://docs.gitlab.com/ee/user/admin_area/settings/instance_template_repository.html#supported-file-types-and-locations
-> This resource requires a GitLab Enterprise instance with a Premium license.
Upstream API: GitLab REST API docs https://docs.gitlab.com/ee/api/groups.html#update-group |
The gitlab_group_project_file_template
resource allows setting a project from which
custom file templates will be loaded. The project selected must be a direct child of the group identified.
For more information about which file types are available as templates, view
GitLab's documentation
-> This resource requires a GitLab Enterprise instance with a Premium license.
Upstream API: GitLab REST API docs
resource "gitlab_group" "foo" {
name = "group"
path = "group"
description = "An example group"
}
resource "gitlab_project" "bar" {
name = "template project"
description = "contains file templates"
visibility_level = "public"
namespace_id = gitlab_group.foo.id
}
resource "gitlab_group_project_file_template" "template_link" {
group_id = gitlab_group.foo.id
project = gitlab_project.bar.id
}
file_template_project_id
(Number) The ID of the project that will be used for file templates. This project must be the direct child of the project defined by the group_idgroup_id
(Number) The ID of the group that will use the file template project. This group must be the direct parent of the project defined by project_id
id
(String) The ID of this resource.