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