diff --git a/Readme.md b/Readme.md index fda8514..549d31c 100644 --- a/Readme.md +++ b/Readme.md @@ -16,7 +16,7 @@ This Terraform module provides resources to manage GitLab groups, projects, inte ## Requirements - Terraform 1.5.7 or higher. -- GitLab Provider for Terraform 17.3.0 or higher. +- GitLab Provider for Terraform 18.0.0 or higher. ## Usage @@ -41,20 +41,20 @@ This Terraform module provides resources to manage GitLab groups, projects, inte settings: visibility: private description: "Parent group for user roles subgroups" - ``` + ``` 2. **Projects Configuration** - Define your GitLab projects in YAML files located in the projects directory. Example projects/projects.yaml: + Define your GitLab projects in YAML files located in the projects directory. Example projects/projects.yaml: - ```yaml - projects: - - name: project-alpha - create: true - visibility: private - description: "Alpha project description" - settings: {} - ``` + ```yaml + projects: + - name: project-alpha + create: true + visibility: private + description: "Alpha project description" + settings: {} + ``` ### Step 2: Use the Module @@ -71,17 +71,17 @@ Create a main.tf file and use the module to manage your GitLab resources: ### Step 3: Initialize and Apply -1. **Initialize Terraform:** +1. **Initialize Terraform:** - ```sh - terraform init - ``` + ```sh + terraform init + ``` -2. **Apply the Terraform configuration:** +2. **Apply the Terraform configuration:** - ```sh - terraform apply - ``` + ```sh + terraform apply + ``` ### Step 4: Verify Outputs @@ -114,7 +114,6 @@ You can find examples in the examples/ directory for different use cases, such a - [terraform](https://github.com/opsworks-co/terraform-gitlab/tree/main/examples/terraform) - How to use module with terraform - [terragrunt](https://github.com/opsworks-co/terraform-gitlab/tree/main/examples/terragrunt) - How to use module with terragrunt - ## Authors Module is maintained by [Serhii Kaidalov](https://github.com/wiseelf). diff --git a/main.tf b/main.tf index 8bffb43..44c7934 100644 --- a/main.tf +++ b/main.tf @@ -1101,6 +1101,7 @@ resource "gitlab_project_variable" "this_sensitive" { value = sensitive(each.value.variable.value) protected = lookup(each.value.variable, "protected", false) masked = lookup(each.value.variable, "masked", false) + hidden = lookup(each.value.variable, "hidden", false) environment_scope = lookup(each.value.variable, "environment_scope", "*") description = lookup(each.value.variable, "description", null) raw = lookup(each.value.variable, "raw", false) @@ -1437,7 +1438,6 @@ resource "gitlab_integration_jira" "this" { jira_issue_transition_automatic = each.value.integration.jira_issue_transition_automatic jira_issue_transition_id = each.value.integration.jira_issue_transition_id merge_requests_events = each.value.integration.merge_requests_events - project_key = each.value.integration.project_key project_keys = each.value.integration.project_keys use_inherited_settings = each.value.integration.use_inherited_settings } diff --git a/versions.tf b/versions.tf index b2a98bb..7653458 100644 --- a/versions.tf +++ b/versions.tf @@ -2,7 +2,7 @@ terraform { required_providers { gitlab = { source = "gitlabhq/gitlab" - version = "= 17.9.0" + version = "= 18.0.0" } } required_version = ">= 1.4.0"