Skip to content

Commit de2823f

Browse files
authored
Merge pull request #1 from Perun-Engineering/feat/hidden-variables
feat: Add support for hidden variables
2 parents ab63cd9 + 00c6cba commit de2823f

3 files changed

Lines changed: 21 additions & 22 deletions

File tree

Readme.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This Terraform module provides resources to manage GitLab groups, projects, inte
1616
## Requirements
1717

1818
- Terraform 1.5.7 or higher.
19-
- GitLab Provider for Terraform 17.3.0 or higher.
19+
- GitLab Provider for Terraform 18.0.0 or higher.
2020

2121
## Usage
2222

@@ -41,20 +41,20 @@ This Terraform module provides resources to manage GitLab groups, projects, inte
4141
settings:
4242
visibility: private
4343
description: "Parent group for user roles subgroups"
44-
```
44+
```
4545
4646
2. **Projects Configuration**
4747
48-
Define your GitLab projects in YAML files located in the projects directory. Example projects/projects.yaml:
48+
Define your GitLab projects in YAML files located in the projects directory. Example projects/projects.yaml:
4949
50-
```yaml
51-
projects:
52-
- name: project-alpha
53-
create: true
54-
visibility: private
55-
description: "Alpha project description"
56-
settings: {}
57-
```
50+
```yaml
51+
projects:
52+
- name: project-alpha
53+
create: true
54+
visibility: private
55+
description: "Alpha project description"
56+
settings: {}
57+
```
5858
5959
### Step 2: Use the Module
6060
@@ -71,17 +71,17 @@ Create a main.tf file and use the module to manage your GitLab resources:
7171

7272
### Step 3: Initialize and Apply
7373

74-
1. **Initialize Terraform:**
74+
1. **Initialize Terraform:**
7575

76-
```sh
77-
terraform init
78-
```
76+
```sh
77+
terraform init
78+
```
7979

80-
2. **Apply the Terraform configuration:**
80+
2. **Apply the Terraform configuration:**
8181

82-
```sh
83-
terraform apply
84-
```
82+
```sh
83+
terraform apply
84+
```
8585

8686
### Step 4: Verify Outputs
8787

@@ -114,7 +114,6 @@ You can find examples in the examples/ directory for different use cases, such a
114114
- [terraform](https://github.com/opsworks-co/terraform-gitlab/tree/main/examples/terraform) - How to use module with terraform
115115
- [terragrunt](https://github.com/opsworks-co/terraform-gitlab/tree/main/examples/terragrunt) - How to use module with terragrunt
116116

117-
118117
## Authors
119118

120119
Module is maintained by [Serhii Kaidalov](https://github.com/wiseelf).

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,7 @@ resource "gitlab_project_variable" "this_sensitive" {
11011101
value = sensitive(each.value.variable.value)
11021102
protected = lookup(each.value.variable, "protected", false)
11031103
masked = lookup(each.value.variable, "masked", false)
1104+
hidden = lookup(each.value.variable, "hidden", false)
11041105
environment_scope = lookup(each.value.variable, "environment_scope", "*")
11051106
description = lookup(each.value.variable, "description", null)
11061107
raw = lookup(each.value.variable, "raw", false)
@@ -1437,7 +1438,6 @@ resource "gitlab_integration_jira" "this" {
14371438
jira_issue_transition_automatic = each.value.integration.jira_issue_transition_automatic
14381439
jira_issue_transition_id = each.value.integration.jira_issue_transition_id
14391440
merge_requests_events = each.value.integration.merge_requests_events
1440-
project_key = each.value.integration.project_key
14411441
project_keys = each.value.integration.project_keys
14421442
use_inherited_settings = each.value.integration.use_inherited_settings
14431443
}

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
gitlab = {
44
source = "gitlabhq/gitlab"
5-
version = "= 17.9.0"
5+
version = "= 18.0.0"
66
}
77
}
88
required_version = ">= 1.4.0"

0 commit comments

Comments
 (0)