From cc1e5ccf2dbc637d911483244192a0b634f6f9f4 Mon Sep 17 00:00:00 2001 From: Dipti Pai Date: Thu, 8 Aug 2024 16:21:22 -0700 Subject: [PATCH] Add README and remove unused variables --- tf-modules/azure/devops/README.md | 22 ++++++++++++++++++++++ tf-modules/azure/devops/variables.tf | 10 ---------- 2 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 tf-modules/azure/devops/README.md diff --git a/tf-modules/azure/devops/README.md b/tf-modules/azure/devops/README.md new file mode 100644 index 0000000..470f7db --- /dev/null +++ b/tf-modules/azure/devops/README.md @@ -0,0 +1,22 @@ +# DevOps Module + +Configuration in this directory creates an Azure DevOps Project and repository. + +## Usage + +```hcl +provider "azuredevops" { + org_service_url = "https://dev.azure.com/azuredevops_org" + personal_access_token = "azuredevops_pat" +} + +module "devops" { + source = "git::https://github.com/fluxcd/test-infra.git//tf-modules/azure/devops" + providers = { + azuredevops = azuredevops + } + + project_name = local.project_name + repository_name = local.repo_name +} +``` diff --git a/tf-modules/azure/devops/variables.tf b/tf-modules/azure/devops/variables.tf index 28fd20b..e9ce15b 100644 --- a/tf-modules/azure/devops/variables.tf +++ b/tf-modules/azure/devops/variables.tf @@ -1,13 +1,3 @@ -variable "organization" { - description = "The name of the Azure DevOps organization" - type = string -} - -variable "pat_token" { - description = "The Personal Access Token for Azure DevOps" - type = string -} - variable "project_name" { description = "The name of the Azure DevOps project" type = string