Skip to content

Commit 38eac1d

Browse files
feat: Add support for BitBucket Server and Azure DevOps Server (#6)
* feat: Add support for BitBucket Server and Azure DevOps Server * docs: Generate README.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 2dedc71 commit 38eac1d

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ module "tfe-oauth_client" {
2929
| Name | Version |
3030
|------|---------|
3131
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
32-
| <a name="requirement_tfe"></a> [tfe](#requirement\_tfe) | >= 0.26.1, < 1.0.0 |
32+
| <a name="requirement_tfe"></a> [tfe](#requirement\_tfe) | >= 0.27.0, < 1.0.0 |
3333

3434
## Providers
3535

3636
| Name | Version |
3737
|------|---------|
38-
| <a name="provider_tfe"></a> [tfe](#provider\_tfe) | >= 0.26.1, < 1.0.0 |
38+
| <a name="provider_tfe"></a> [tfe](#provider\_tfe) | >= 0.27.0, < 1.0.0 |
3939

4040
## Modules
4141

@@ -53,9 +53,12 @@ No modules.
5353
|------|-------------|------|---------|:--------:|
5454
| <a name="input_api_url"></a> [api\_url](#input\_api\_url) | The base URL of your VCS provider's API | `string` | n/a | yes |
5555
| <a name="input_http_url"></a> [http\_url](#input\_http\_url) | The homepage of your VCS provider | `string` | n/a | yes |
56+
| <a name="input_key"></a> [key](#input\_key) | The OAuth Client key can refer to a Consumer Key, Application Key, or another type of client key for the VCS provider | `string` | `null` | no |
5657
| <a name="input_oauth_token"></a> [oauth\_token](#input\_oauth\_token) | The token string you were given by your VCS provider | `string` | `null` | no |
5758
| <a name="input_organization"></a> [organization](#input\_organization) | Name of the organization | `string` | n/a | yes |
5859
| <a name="input_private_key"></a> [private\_key](#input\_private\_key) | The text of the private key associated with your Azure DevOps Server account | `string` | `null` | no |
60+
| <a name="input_rsa_public_key"></a> [rsa\_public\_key](#input\_rsa\_public\_key) | Required for BitBucket Server in conjunction with the secret | `string` | `null` | no |
61+
| <a name="input_secret"></a> [secret](#input\_secret) | The OAuth Client secret is used for BitBucket Server, this secret is the the text of the SSH private key associated with your BitBucket Server Application Link | `string` | `null` | no |
5962
| <a name="input_service_provider"></a> [service\_provider](#input\_service\_provider) | The VCS provider being connected with | `string` | n/a | yes |
6063

6164
## Outputs

main.tf

+3
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ resource "tfe_oauth_client" "default" {
44
http_url = var.http_url
55
oauth_token = var.oauth_token
66
private_key = var.private_key
7+
key = var.key
8+
secret = var.secret
9+
rsa_public_key = var.rsa_public_key
710
service_provider = var.service_provider
811
}

rover.png

231 KB
Loading

variables.tf

+18
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,24 @@ variable "private_key" {
2525
description = "The text of the private key associated with your Azure DevOps Server account"
2626
}
2727

28+
variable "key" {
29+
type = string
30+
default = null
31+
description = "The OAuth Client key can refer to a Consumer Key, Application Key, or another type of client key for the VCS provider"
32+
}
33+
34+
variable "secret" {
35+
type = string
36+
default = null
37+
description = "The OAuth Client secret is used for BitBucket Server, this secret is the the text of the SSH private key associated with your BitBucket Server Application Link"
38+
}
39+
40+
variable "rsa_public_key" {
41+
type = string
42+
default = null
43+
description = "Required for BitBucket Server in conjunction with the secret"
44+
}
45+
2846
variable "service_provider" {
2947
type = string
3048
description = "The VCS provider being connected with"

versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
tfe = {
44
source = "hashicorp/tfe"
5-
version = ">= 0.26.1, < 1.0.0"
5+
version = ">= 0.27.0, < 1.0.0"
66
}
77
}
88

0 commit comments

Comments
 (0)