The gitlab_group_project_file_template
resource allows setting a project from which
custom file templates will be loaded. In order to use this resource, the project selected must be a direct child of
the group selected. After the resource has run, gitlab_project_template.template_project_id
is available for use.
For more information about which file types are available as templates, view
GitLab's documentation
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
file_template_project_id = 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_idid
(String) The ID of this resource.