docs: add organization resource examples for Terraform Registry
- Add examples/resources/towerops_organization/resource.tf - Update examples/main.tf to include organization resource - Terraform Registry will auto-generate docs from these examples
This commit is contained in:
parent
70c7a5cfbb
commit
8babc54a16
2 changed files with 10 additions and 0 deletions
|
|
@ -16,6 +16,12 @@ provider "towerops" {
|
||||||
token = var.towerops_api_token
|
token = var.towerops_api_token
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Manage organization settings
|
||||||
|
resource "towerops_organization" "main" {
|
||||||
|
name = "My Organization"
|
||||||
|
use_sites = true
|
||||||
|
}
|
||||||
|
|
||||||
# Create a site
|
# Create a site
|
||||||
resource "towerops_site" "main_office" {
|
resource "towerops_site" "main_office" {
|
||||||
name = "Main Office"
|
name = "Main Office"
|
||||||
|
|
|
||||||
4
examples/resources/towerops_organization/resource.tf
Normal file
4
examples/resources/towerops_organization/resource.tf
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
resource "towerops_organization" "example" {
|
||||||
|
name = "ACME Corporation"
|
||||||
|
use_sites = true
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue