Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 19 additions & 20 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
gitlab = {
source = "gitlabhq/gitlab"
version = "= 17.9.0"
version = "= 18.0.0"
}
}
required_version = ">= 1.4.0"
Expand Down