refactor: restructure project — separate tools, config, generated, provider
TOOLS/ — generators + scripts + config + ARCHITECTURE.md ├── yaml-generator/ (code) ├── resource-generator/ (code) ├── docs-generator/ (code) ├── scripts/ (← devops/*.sh) ├── config/ (← devops/profiles/ + devops/config/) │ ├── test/ profile.env, services_list.txt, operation_timeouts.json │ ├── prod/ │ └── dev/ └── ARCHITECTURE.md (← devops/ARCHITECTURE.md) generated/ — pipeline output only (gitignored) ├── test/resources_yaml/, go/, docs/, provider_build/ ├── prod/ └── dev/ provider/ — code only, no generated files resources_yaml/ — DELETED (generated) internal/resources_gen/ — DELETED (generated) devops/ — removed (replaced by TOOLS/scripts + TOOLS/config + generated/) Generators now fail if NUBES_*_DIR not set (no defaults to provider/). Provider requires pipeline to populate resources_gen/ before build.
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
# Resource nubes_valo_tenant
|
||||
|
||||
Service ID: `149`
|
||||
|
||||
Service Name: VALO Cloud
|
||||
|
||||
[Manual](valo_tenant.md) | [Create params](valo_tenant_params_create.md) | [Modify params](valo_tenant_params_modify.md) | [Output params](valo_tenant_outputs.md) | [Operations](valo_tenant_ops.md) | [Example](valo_tenant_example.md)
|
||||
|
||||
## Copy-ready manifest (`valo_tenant_main.tf`)
|
||||
|
||||
```hcl
|
||||
terraform {
|
||||
required_providers {
|
||||
nubes = {
|
||||
source = "terra.k8c.ru/nubes/nubes"
|
||||
version = "5.0.39"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Токен доступа api_token к Nubes API — замените на реальный.
|
||||
provider "nubes" {
|
||||
api_token = "token_***"
|
||||
api_endpoint = "https://deck-api.ngcloud.ru/api/v1/index.cfm"
|
||||
}
|
||||
resource "nubes_valo_tenant" "baza" {
|
||||
resource_realm = "TODO"
|
||||
domain = "TODO" # Будет добавлено в зону valo.ngcloud.ru
|
||||
|
||||
# Параметры, имеющие значение по умолчанию, если не меняете - эти параметры не обязательно прописывать в манифесте
|
||||
valo_options = {}
|
||||
s3_storage = 10 # Параметр указывается в `Gb`
|
||||
}
|
||||
```
|
||||
|
||||
## Outputs usage
|
||||
|
||||
```hcl
|
||||
# Выходные параметры можно использовать как
|
||||
nubes_valo_tenant.baza.state_params["имя_ключа"]
|
||||
nubes_valo_tenant.baza.state_out["имя_ключа"]
|
||||
nubes_valo_tenant.baza.state_params_flat["имя_ключа"]
|
||||
nubes_valo_tenant.baza.state_out_flat["имя_ключа"]
|
||||
nubes_valo_tenant.baza.vault_secrets["имя_ключа"]
|
||||
nubes_valo_tenant.baza.vault_url
|
||||
nubes_valo_tenant.baza.vault_user_path
|
||||
nubes_valo_tenant.baza.vault_fields
|
||||
```
|
||||
Reference in New Issue
Block a user