Terraform Gitea Provider
Go to file
Renovate Bot cdc2685623 fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.29.0 (#17)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) | require | minor | `v2.27.0` -> `v2.29.0` |

---

### Release Notes

<details>
<summary>hashicorp/terraform-plugin-sdk (github.com/hashicorp/terraform-plugin-sdk/v2)</summary>

### [`v2.29.0`](https://github.com/hashicorp/terraform-plugin-sdk/releases/tag/v2.29.0)

[Compare Source](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.28.0...v2.29.0)

NOTES:

-   all: This Go module has been updated to Go 1.20 per the [Go support policy](https://go.dev/doc/devel/release#policy). It is recommended to review the [Go 1.20 release notes](https://go.dev/doc/go1.20) before upgrading. Any consumers building on earlier Go versions may experience errors. ([#&#8203;1245](https://github.com/hashicorp/terraform-plugin-sdk/issues/1245))

FEATURES:

-   helper/schema: Upgrade to protocol version 5.4, which can significantly reduce memory usage with Terraform 1.6 and later when a configuration includes multiple instances of the same provider ([#&#8203;1234](https://github.com/hashicorp/terraform-plugin-sdk/issues/1234))

ENHANCEMENTS:

-   helper/validation: Added `AllDiag` and `AnyDiag`, which are `SchemaValidateDiagFunc` variants of `All` and `Any` ([#&#8203;1155](https://github.com/hashicorp/terraform-plugin-sdk/issues/1155))
-   helper/validation: Added quoting in `StringInSlice` error diagnostic output to prevent confusion with values that contain spaces ([#&#8203;464](https://github.com/hashicorp/terraform-plugin-sdk/issues/464))

### [`v2.28.0`](https://github.com/hashicorp/terraform-plugin-sdk/releases/tag/v2.28.0)

[Compare Source](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.27.0...v2.28.0)

NOTES:

-   helper/schema: The `Resource` type `EnableApplyLegacyTypeSystemErrors` and `EnablePlanLegacyTypeSystemErrors` fields can be enabled to more easily discover resource data consistency errors which Terraform would normally demote to warning logs. Before enabling the flag in a production release for a resource, the resource should be exhaustively acceptance tested as there may be unrecoverable error situations for practitioners. It is recommended to first enable and test in environments where it is easy to clean up resources, potentially outside of Terraform. ([#&#8203;1227](https://github.com/hashicorp/terraform-plugin-sdk/issues/1227))

ENHANCEMENTS:

-   helper/schema: Added `Resource` type `EnableLegacyTypeSystemApplyErrors` field, which will prevent Terraform from demoting data consistency errors to warning logs during `ApplyResourceChange` (`Create`, `Update`, and `Delete`) operations with the resource ([#&#8203;1227](https://github.com/hashicorp/terraform-plugin-sdk/issues/1227))
-   helper/schema: Added `Resource` type `EnableLegacyTypeSystemPlanErrors` field, which can be used to prevent Terraform from demoting data consistency errors to warning logs during `PlanResourceChange` operations with the resource ([#&#8203;1227](https://github.com/hashicorp/terraform-plugin-sdk/issues/1227))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi43OS4xIiwidXBkYXRlZEluVmVyIjoiMzYuNzkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/17
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-09-07 21:50:38 +00:00
.gitea/workflows Add ci (#8) 2023-04-19 14:35:42 +08:00
.github chore(deps): update actions/checkout action to v4 (#19) 2023-09-07 21:50:19 +00:00
docs lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
examples lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
gitea lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
scripts readding install command (#14) 2023-09-07 21:47:00 +00:00
tools lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
.gitignore lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
.goreleaser.yaml add goreleaser 2023-03-31 14:09:43 -04:00
LICENSE lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
Makefile readding install command (#14) 2023-09-07 21:47:00 +00:00
README.md lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
go.mod fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.29.0 (#17) 2023-09-07 21:50:38 +00:00
go.sum fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.29.0 (#17) 2023-09-07 21:50:38 +00:00
main.go lerentis's changes (#12) 2023-09-06 01:44:01 +00:00
renovate.json5 Configure Renovate (#15) 2023-09-07 21:40:26 +00:00
terraform-registry-manifest.json Add 'terraform-registry-manifest.json' 2023-03-31 03:57:18 +08:00

README.md

terraform-provider-gitea

Terraform Gitea Provider

This repo is mirrored from https://gitea.com/gitea/terraform-provider-gitea please send all issues and pull requests there.

Usage

This is not a 1.0 release, so usage is subject to change!

terraform {
  required_providers {
    gitea = {
      source = "go-gitea/gitea"
      version = "0.2.0"
    }
  }
}

provider "gitea" {
  base_url = var.gitea_url # optionally use GITEA_BASE_URL env var
  token    = var.gitea_token # optionally use GITEA_TOKEN env var

  # Username/Password authentication is mutally exclusive with token authentication
  # username = var.username # optionally use GITEA_USERNAME env var
  # password = var.password # optionally use GITEA_PASSWORD env var

  # A file containing the ca certificate to use in case ssl certificate is not from a standard chain
  cacert_file = var.cacert_file 
  
  # If you are running a gitea instance with self signed TLS certificates
  # and you want to disable certificate validation you can deactivate it with this flag
  insecure = false 
}

resource "gitea_repository" "test" {
  username     = "lerentis"
  name         = "test"
  private      = true
  issue_labels = "Default"
  license      = "MIT"
  gitignores   = "Go"
}

resource "gitea_repository" "mirror" {
  username                     = "lerentis"
  name                         = "terraform-provider-gitea-mirror"
  description                  = "Mirror of Terraform Provider"
  mirror                       = true
  migration_clone_addresse     = "https://git.uploadfilter24.eu/lerentis/terraform-provider-gitea.git"
  migration_service            = "gitea"
  migration_service_auth_token = var.gitea_mirror_token
}

resource "gitea_org" "test_org" {
  name = "test-org"
}

resource "gitea_repository" "org_repo" {
  username = gitea_org.test_org.name
  name = "org-test-repo"
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

History

This codebase was created at https://gitea.com/gitea/terraform-provider-gitea, was forked by @lerentis, and then their changes were merged back into the original repo. Thank you to everyone who contributed!