Skip to content

Commit

Permalink
Merge pull request #5 from dasmeta/DMVP-2755
Browse files Browse the repository at this point in the history
DMVP-2755: Add main.tf for check publish
  • Loading branch information
aghamyan44 authored Oct 17, 2023
2 parents faf0e08 + 9c6bc8f commit 6375495
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
# terraform-bitbucket-modules
Terraform modules for Bitbucket
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements

No requirements.

## Providers

No providers.

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_runner"></a> [runner](#module\_runner) | ./modules/runner/ | n/a |

## Resources

No resources.

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_accountUuid"></a> [accountUuid](#input\_accountUuid) | Account Uuid | `string` | n/a | yes |
| <a name="input_create_namespace"></a> [create\_namespace](#input\_create\_namespace) | Create namespace or use existing one | `bool` | `true` | no |
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace name | `string` | `"runner"` | no |
| <a name="input_oauthClientId"></a> [oauthClientId](#input\_oauthClientId) | Oauth Client | `string` | n/a | yes |
| <a name="input_oauthClientSecret"></a> [oauthClientSecret](#input\_oauthClientSecret) | Oauth Client Secret | `string` | n/a | yes |
| <a name="input_runnerUuid"></a> [runnerUuid](#input\_runnerUuid) | Runner Uuid | `string` | n/a | yes |

## Outputs

No outputs.
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
10 changes: 10 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module "runner" {
source = "./modules/runner/"
oauthClientId = var.oauthClientId
oauthClientSecret = var.oauthClientSecret
accountUuid = var.accountUuid
runnerUuid = var.runnerUuid

namespace = var.namespace
create_namespace = var.create_namespace
}
36 changes: 36 additions & 0 deletions modules/runner/tests/basic/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# basic

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.0 |
| <a name="requirement_kubernetes"></a> [kubernetes](#requirement\_kubernetes) | 2.23.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_test"></a> [test](#provider\_test) | n/a |

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_test"></a> [test](#module\_test) | ../ | n/a |

## Resources

| Name | Type |
|------|------|
| test_assertions.dummy | resource |

## Inputs

No inputs.

## Outputs

No outputs.
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
31 changes: 31 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
variable "oauthClientId" {
type = string
description = "Oauth Client"
}

variable "oauthClientSecret" {
type = string
description = "Oauth Client Secret"
}

variable "accountUuid" {
type = string
description = "Account Uuid"
}

variable "runnerUuid" {
type = string
description = "Runner Uuid"
}

variable "namespace" {
type = string
description = "Namespace name"
default = "runner"
}

variable "create_namespace" {
type = bool
description = "Create namespace or use existing one"
default = true
}

0 comments on commit 6375495

Please sign in to comment.