Terraform module to manage the following GitLab resources:
- gitlab_user
Copy and paste the following code snippet to your Terraform configuration,
specify the required variables and run the command terraform init.
module "gitlab_user" {
source = "gitlab.com/terraform-child-modules-48151/terraform-gitlab-user/local"
version = "1.2.0"
name = "John Doe"
username = "jdoe"
password = "XKvhCJp9MtwTgwRu" # gitleaks:allow
email = "john.doe@example.com"
}| Name | Version |
|---|---|
| terraform | >= 1.0 |
| gitlab | ~> 18.0 |
| Name | Version |
|---|---|
| gitlab | ~> 18.0 |
No modules.
| Name | Type |
|---|---|
| gitlab_user.this | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| can_create_group | Whether to allow the user to create groups | bool |
false |
no |
| The e-mail address of the user | string |
n/a | yes | |
| force_random_password | Set user password to a random value | bool |
false |
no |
| is_admin | Whether to enable administrative privileges | bool |
false |
no |
| is_external | Whether a user has access only to some internal or private projects | bool |
false |
no |
| name | The name of the user | string |
n/a | yes |
| namespace_id | The ID of the user's namespace | number |
null |
no |
| note | The note associated to the user | string |
null |
no |
| password | The password of the user | string |
null |
no |
| projects_limit | Number of projects user can create | number |
0 |
no |
| reset_password | Send user password reset link | bool |
null |
no |
| skip_confirmation | Whether to skip confirmation | bool |
true |
no |
| state | The state of the user account | string |
"active" |
no |
| username | The username of the user | string |
n/a | yes |
| Name | Description |
|---|---|
| id | The ID of this resource |
Created and maintained by Dennis Hoppe.
Apache 2 licensed. See LICENSE for full details.