feat(provider): add provider configuration
This commit is contained in:
commit
95834c9ad9
20 changed files with 1167 additions and 0 deletions
15
examples/README.md
Normal file
15
examples/README.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Examples
|
||||
|
||||
This directory contains examples that are mostly used for documentation, but can
|
||||
also be run/tested manually via the Terraform CLI.
|
||||
|
||||
The document generation tool looks for files in the following locations by
|
||||
default. All other *.tf files besides the ones mentioned below are ignored by
|
||||
the documentation tool. This is useful for creating examples that can run and/or
|
||||
ar testable even if some parts are not relevant for the documentation.
|
||||
|
||||
* **provider/provider.tf** example file for the provider index page
|
||||
* **data-sources/`full data source name`/data-source.tf** example file for the
|
||||
named data source page
|
||||
* **resources/`full resource name`/resource.tf** example file for the named data
|
||||
source page
|
12
examples/provider/provider.tf
Normal file
12
examples/provider/provider.tf
Normal file
|
@ -0,0 +1,12 @@
|
|||
terraform {
|
||||
required_providers {
|
||||
forgejo = {
|
||||
source = "adyxax/forgejo"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "forgejo" {
|
||||
api_token = var.forgejo_api_token
|
||||
endpoint = "https://git.adyxax.org/"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue