Skip to content

Commit 2279698

Browse files
committed
implement projects output
1 parent d5ca702 commit 2279698

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

outputs_projects.tf

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
locals {
2+
projects = [
3+
for index, project in data.gitlab_projects.projects.projects :
4+
merge(project, {
5+
members = data.gitlab_project_membership.project_membership[project.name].members
6+
})
7+
]
8+
9+
projects_template_vars = merge(
10+
tomap({
11+
projects = local.projects
12+
}),
13+
tomap({
14+
projects_sort = var.projects_sort
15+
tabulator_theme = var.tabulator_theme,
16+
html_font_family = var.html_font_family
17+
}))
18+
}
19+
20+
output "projects_html" {
21+
value = templatefile(local.projects_html_template_file, local.projects_template_vars)
22+
}

0 commit comments

Comments
 (0)