这是indexloc提供的服务,不要输入任何密码
Skip to content

misurellig/terraform-gitlab-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform GitLab Project

Terraform module to create GitLab projects.

Usage

See examples.

Requirements

Name Version
terraform >= 1.5.0
gitlab 16.1.0

Resources

Name Type
gitlab_branch_protection.master resource
gitlab_project.project resource
gitlab_tag_protection.tags resource

Inputs

Name Description Type Default Required
main_branch_to_protect Main branch name to protect string n/a yes
projects Map for list of projects
map(object({
name = string
namespace_id = number
allow_merge_on_skipped_pipeline = optional(bool)
approvals_before_merge = optional(number)
archive_on_destroy = optional(bool)
archived = optional(bool)
auto_cancel_pending_pipelines = optional(string)
auto_devops_enabled = optional(bool)
build_coverage_regex = optional(string)
ci_config_path = optional(string)
ci_forward_deployment_enabled = optional(bool)
container_registry_enabled = optional(bool)
default_branch = optional(string)
description = optional(string)
group_with_project_templates_id = optional(number)
import_url = optional(string)
initialize_with_readme = optional(bool)
issues_enabled = optional(bool)
issues_template = optional(string)
lfs_enabled = optional(bool)
merge_method = optional(string)
merge_pipelines_enabled = optional(bool)
merge_requests_enabled = optional(bool)
merge_requests_template = optional(string)
merge_trains_enabled = optional(bool)
mirror = optional(bool)
mirror_overwrites_diverged_branches = optional(bool)
mirror_trigger_builds = optional(bool)
only_allow_merge_if_all_discussions_are_resolved = optional(bool)
only_allow_merge_if_pipeline_succeeds = optional(bool)
only_mirror_protected_branches = optional(bool)
packages_enabled = optional(bool)
pages_access_level = optional(string)
path = optional(string)
printing_merge_request_link_enabled = optional(bool)
public_build = optional(bool)
push_rules = optional(object({
commit_committer_check = optional(bool)
deny_delete_tag = optional(bool)
max_file_size = optional(number)
member_check = optional(bool)
prevent_secrets = optional(bool)
reject_unsigned_commits = optional(bool)
author_email_regex = optional(string)
branch_name_regex = optional(string)
commit_message_negative_regex = optional(string)
commit_message_regex = optional(string)
file_name_regex = optional(string)
})
)
remove_source_branch_after_merge = optional(bool)
request_access_enabled = optional(bool)
shared_runners_enabled = optional(bool)
snippets_enabled = optional(bool)
squash_option = optional(string)
tags = optional(list(string))
template_name = optional(string)
template_project_id = optional(number)
use_custom_template = optional(bool)
visibility_level = optional(string)
wiki_enabled = optional(bool)
}))
n/a yes

Outputs

Name Description
project_name n/a
project_namespace n/a
project_web_url n/a

About

Terraform module to create GitLab projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages