Skip to content

Commit 1b6df09

Browse files
committed
Update documentation for template resources
1 parent 1ae9f34 commit 1b6df09

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

internal/provider/resource_gitlab_group_project_file_template.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ import (
1414
var _ = registerResource("gitlab_group_project_file_template", func() *schema.Resource {
1515
return &schema.Resource{
1616
Description: `The ` + "`gitlab_group_project_file_template`" + ` resource allows setting a project from which
17-
custom file templates will be loaded. The project selected must be a direct child of the group identified.
17+
custom file templates will be loaded. In order to use this resource, the project selected must be a direct child of
18+
the group selected. After the resource has run, ` + "`gitlab_project_template.template_project_id`" + ` is available for use.
1819
For more information about which file types are available as templates, view
19-
[GitLab's documentation](https://docs.gitlab.com/ee/user/admin_area/settings/instance_template_repository.html#supported-file-types-and-locations)
20+
[GitLab's documentation](https://docs.gitlab.com/ee/user/group/custom_project_templates.html)
2021
2122
-> This resource requires a GitLab Enterprise instance with a Premium license.
2223

internal/provider/resource_gitlab_project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ var resourceGitLabProjectSchema = map[string]*schema.Schema{
317317
ForceNew: true,
318318
},
319319
"template_project_id": {
320-
Description: "When used with use_custom_template, project ID of a custom project template. This is preferable to using template_name since template_name may be ambiguous (enterprise edition). This option is mutually exclusive with `template_name`.",
320+
Description: "When used with use_custom_template, project ID of a custom project template. This is preferable to using template_name since template_name may be ambiguous (enterprise edition). This option is mutually exclusive with `template_name`. See `gitlab_group_project_file_template` to set a project as a template project. If a project has not been set as a template, using it here will result in an error.",
321321
Type: schema.TypeInt,
322322
Optional: true,
323323
ConflictsWith: []string{"template_name"},

0 commit comments

Comments
 (0)