From c507d76db58d33466d84a76047ce223c23a058d7 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Tue, 21 Nov 2023 18:56:39 +0000 Subject: [PATCH] Update 4 files - /TERRAFORM.GITLAB.PROJECTS/main.tf - /TERRAFORM.GITLAB.PROJECTS/variables.tf - /.gitlab/.gitlab-ci.yml - /.variables.yml --- .gitlab/.gitlab-ci.yml | 5 +++++ .variables.yml | 3 +++ TERRAFORM.GITLAB.PROJECTS/main.tf | 13 +++++++++++++ TERRAFORM.GITLAB.PROJECTS/variables.tf | 3 +++ 4 files changed, 24 insertions(+) create mode 100644 .gitlab/.gitlab-ci.yml create mode 100644 .variables.yml create mode 100644 TERRAFORM.GITLAB.PROJECTS/main.tf create mode 100644 TERRAFORM.GITLAB.PROJECTS/variables.tf diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml new file mode 100644 index 0000000..2abe90f --- /dev/null +++ b/.gitlab/.gitlab-ci.yml @@ -0,0 +1,5 @@ +include: + - project: 'developerdurp/yml' + ref: 'main' + file: 'pipelines/gitlab_generic_packages.yml' + - local: .variables.yml diff --git a/.variables.yml b/.variables.yml new file mode 100644 index 0000000..501f87f --- /dev/null +++ b/.variables.yml @@ -0,0 +1,3 @@ +variables: + PROJECT_NAME: TERRAFORM.GITLAB.PROJECTS + OCTO_PROJECT_NAME: "Gitlab Projects" \ No newline at end of file diff --git a/TERRAFORM.GITLAB.PROJECTS/main.tf b/TERRAFORM.GITLAB.PROJECTS/main.tf new file mode 100644 index 0000000..4168cd2 --- /dev/null +++ b/TERRAFORM.GITLAB.PROJECTS/main.tf @@ -0,0 +1,13 @@ +terraform { + backend "http" {} + required_providers { + gitlab { + source = "gitlabhq/gitlab" + verison = "16.2.0" + } + } +} + +provider "gitlab" { + token = var.GITLAB_TOKEN +} \ No newline at end of file diff --git a/TERRAFORM.GITLAB.PROJECTS/variables.tf b/TERRAFORM.GITLAB.PROJECTS/variables.tf new file mode 100644 index 0000000..1b2a215 --- /dev/null +++ b/TERRAFORM.GITLAB.PROJECTS/variables.tf @@ -0,0 +1,3 @@ +variable "GITLAB_TOKEN { + type = string +} \ No newline at end of file