Skip to content

Latest commit

 

History

History
102 lines (74 loc) · 3.3 KB

README.md

File metadata and controls

102 lines (74 loc) · 3.3 KB

OpenTofu / Terraform Provider for sourcehut (sr.ht)

Based on the work from SamWhited / terraform-provider-sourcehut


REUSE status builds.sr.ht status

Table of Contents

Usage

The provider is available in the OpenTofu and Terraform registry.

Example usage in a provider.tf file:

terraform {
  required_version = ">= 1.8"
  required_providers {
    sourcehut = {
      source  = "wombelix/sourcehut"
      version = "0.2.0"

      # SRHT_TOKEN env var
    }
  }
}

The sourcehut oauth personal access tokens will be read from Environment variable SRHT_TOKEN.

You also have the option to build the provider and install it manually.

After the build is complete (make), copy the terraform-provider-sourcehut binary into the third party plugins directory (e.g. ~/.terraform.d/plugins) and re-run terraform init. For more information, see the documentation about third party plugins.

The documentation can be found in thedocs/ sub-folder. The online version is available in the OpenTofu and Terraform registry.

Source

The primary location is: git.sr.ht/~wombelix/terraform-provider-sourcehut

Mirrors are available on Codeberg, Gitlab and Github.

Publishing to registry.terraform.io and search.opentofu.org is handled by the GitHub mirror.

Contribute

Please don't hesitate to provide Feedback, open an Issue or create a Pull / Merge Request.

Just pick the workflow or platform you prefer and are most comfortable with.

Feedback, bug reports or patches to my sr.ht list ~wombelix/[email protected] or via Email and Instant Messaging are also always welcome.

License

Unless otherwise stated: BSD-2-Clause

All files contain license information either as header comment or corresponding .license file.

REUSE from the FSFE implemented to verify license and copyright compliance.