mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-01-11 22:41:45 +01:00
[2][chore] Convert to independently publishable system
Update references to allow publishing this as an individual provider.ü
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Bitbucket Server Terraform Provider
|
||||
|
||||
[](https://registry.terraform.io/providers/gavinbunney/bitbucketserver/latest)
|
||||
[](https://registry.terraform.io/providers/xvlcwk-terraform/bitbucketserver/latest)
|
||||
|
||||
This terraform provider allows management of **Bitbucket Server** resources. The bundled terraform bitbucket provider works only for Bitbucket Cloud.
|
||||
|
||||
@@ -9,8 +9,6 @@ This terraform provider allows management of **Bitbucket Server** resources. The
|
||||
Download a binary for your system from the release page and remove the `-os-arch` details so you're left with `terraform-provider-bitbucketserver`.
|
||||
Use `chmod +x` to make it executable and then either place it at the root of your Terraform folder or in the Terraform plugin folder on your system.
|
||||
|
||||
See [User Guide](https://gavinbunney.github.io/terraform-provider-bitbucketserver) for details on all the provided data and resource types.
|
||||
|
||||
### Example
|
||||
|
||||
```hcl
|
||||
@@ -41,7 +39,7 @@ resource "bitbucketserver_repository" "test" {
|
||||
- [Go](https://golang.org/doc/install) 1.11+
|
||||
- correctly setup [GOPATH](http://golang.org/doc/code.html#GOPATH
|
||||
- add `$GOPATH/bin` to your `$PATH`
|
||||
- clone this repository to `$GOPATH/src/github.com/gavinbunney/terraform-provider-bitbucketserver`
|
||||
- clone this repository to `$GOPATH/src/github.com/xvlcwk-terraform/terraform-provider-bitbucketserver`
|
||||
|
||||
### Building the provider
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/gavinbunney/terraform-provider-bitbucketserver/bitbucket/marketplace"
|
||||
"github.com/xvlcwk-terraform/terraform-provider-bitbucketserver/bitbucket/marketplace"
|
||||
|
||||
"github.com/hashicorp/terraform/helper/schema"
|
||||
"github.com/hashicorp/terraform/terraform"
|
||||
|
||||
@@ -16,7 +16,7 @@ terraform {
|
||||
|
||||
required_providers {
|
||||
bitbucketserver = {
|
||||
source = "gavinbunney/bitbucketserver"
|
||||
source = "xvlcwk-terraform/bitbucketserver"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,7 @@ The following one-liner script will fetch the latest provider version and downlo
|
||||
|
||||
```bash
|
||||
$ mkdir -p ~/.terraform.d/plugins && \
|
||||
curl -Ls https://api.github.com/repos/gavinbunney/terraform-provider-bitbucketserver/releases/latest \
|
||||
curl -Ls https://api.github.com/repos/xvlcwk-terraform/terraform-provider-bitbucketserver/releases/latest \
|
||||
| jq -r ".assets[] | select(.browser_download_url | contains(\"$(uname -s | tr A-Z a-z)\")) | select(.browser_download_url | contains(\"amd64\")) | .browser_download_url" \
|
||||
| xargs -n 1 curl -Lo ~/.terraform.d/plugins/terraform-provider-bitbucketserver.zip && \
|
||||
pushd ~/.terraform.d/plugins/ && \
|
||||
@@ -44,7 +44,7 @@ $ mkdir -p ~/.terraform.d/plugins && \
|
||||
|
||||
#### Install manually
|
||||
|
||||
If you don't want to use the one-liner above, you can download a binary for your system from the [release page](https://github.com/gavinbunney/terraform-provider-bitbucketserver/releases),
|
||||
If you don't want to use the one-liner above, you can download a binary for your system from the [release page](https://github.com/xvlcwk-terraform/terraform-provider-bitbucketserver/releases),
|
||||
then either place it at the root of your Terraform folder or in the Terraform plugin folder on your system.
|
||||
|
||||
|
||||
|
||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module github.com/gavinbunney/terraform-provider-bitbucketserver
|
||||
module github.com/xvlcwk-terraform/terraform-provider-bitbucketserver
|
||||
|
||||
require github.com/hashicorp/terraform v0.12.2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user