feat: initial commit
This commit is contained in:
commit
94c046e7e7
11 changed files with 89 additions and 0 deletions
13
.editorconfig
Normal file
13
.editorconfig
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
end_of_line = lf
|
||||
max_line_length = null
|
||||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
3
.git-hooks/pre-commit
Executable file
3
.git-hooks/pre-commit
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
make tf-fmt-check
|
||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
.terraform
|
||||
.terraform.lock.hcl
|
||||
7
.gitlab-ci.yml
Normal file
7
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
include:
|
||||
- project: mareshq/ci
|
||||
file: terraform/modules.gitlab-ci.yml
|
||||
ref: main
|
||||
|
||||
variables:
|
||||
TERRAFORM_MODULE_SYSTEM: gitlab
|
||||
19
.releaserc.yml
Normal file
19
.releaserc.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
verifyConditions:
|
||||
- "@semantic-release/gitlab"
|
||||
prepare:
|
||||
generateNotes:
|
||||
- "@semantic-release/release-notes-generator"
|
||||
publish:
|
||||
- "@semantic-release/gitlab"
|
||||
success: false
|
||||
fail: false
|
||||
npmPublish: false
|
||||
tagFormat: ${version}
|
||||
plugins:
|
||||
- - "@semantic-release/commit-analyzer"
|
||||
- preset: angular
|
||||
parserOpts:
|
||||
- "BREAKING CHANGE"
|
||||
- "BREAKING CHANGES"
|
||||
- "BREAKING"
|
||||
- - "@semantic-release/release-notes-generator"
|
||||
12
Makefile
Normal file
12
Makefile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
.PHONY: setup-git-hooks
|
||||
setup-git-hooks:
|
||||
rm -rf .git/hooks
|
||||
(cd .git && ln -s ../.git-hooks hooks)
|
||||
|
||||
.PHONY: tf-fmt-check
|
||||
tf-fmt-check:
|
||||
terraform fmt -recursive -check
|
||||
|
||||
.PHONY: tf-fmt
|
||||
tf-fmt:
|
||||
terraform fmt -recursive
|
||||
3
README.md
Normal file
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Terraform modules / GitLab user
|
||||
|
||||
[GitLab (gitlab.mareshq.com)](https://gitlab.mareshq.com) user
|
||||
6
main.tf
Normal file
6
main.tf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
resource "gitlab_user" "user" {
|
||||
name = var.name
|
||||
username = var.username
|
||||
email = var.email
|
||||
reset_password = true
|
||||
}
|
||||
3
outputs.tf
Normal file
3
outputs.tf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
output "id" {
|
||||
value = gitlab_user.user.id
|
||||
}
|
||||
13
variables.tf
Normal file
13
variables.tf
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
variable "name" {
|
||||
type = string
|
||||
description = "Example: John Doe"
|
||||
}
|
||||
|
||||
variable "username" {
|
||||
type = string
|
||||
description = "Example: johndoe_"
|
||||
}
|
||||
|
||||
variable "email" {
|
||||
type = string
|
||||
}
|
||||
8
versions.tf
Normal file
8
versions.tf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
terraform {
|
||||
required_providers {
|
||||
gitlab = {
|
||||
source = "gitlabhq/gitlab"
|
||||
version = ">=3.5.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in a new issue