provisioning/config/templates/workspace-provisioning.yaml.template

138 lines
3.0 KiB
Plaintext
Raw Normal View History

2025-10-07 11:12:02 +01:00
# Workspace Configuration
# Generated from template on: {{now.iso}}
# Workspace: {{workspace.name}}
workspace:
name: "{{workspace.name}}"
version: "1.0.0"
created: "{{now.iso}}"
paths:
base: "{{workspace.path}}"
infra: "{{workspace.path}}/infra"
cache: "{{workspace.path}}/.cache"
runtime: "{{workspace.path}}/.runtime"
providers: "{{workspace.path}}/.providers"
orchestrator: "{{workspace.path}}/.orchestrator"
kms: "{{workspace.path}}/.kms"
generate: "generate"
run_clusters: "clusters"
run_taskservs: "taskservs"
extensions: "{{workspace.path}}/.provisioning-extensions"
resources: "{{workspace.path}}/resources"
templates: "{{workspace.path}}/templates"
tools: "{{workspace.path}}/tools"
# Core settings
core:
version: "1.0.0"
name: "provisioning"
# Debug settings (can be overridden by user context)
debug:
enabled: false
metadata: false
check: false
remote: false
log_level: "info"
no_terminal: false
# Output settings
output:
file_viewer: "bat"
format: "yaml"
# HTTP client settings
http:
use_curl: false
timeout: 30
# Provider configuration
providers:
active: [] # List of active providers: ["aws", "local"]
default: "local"
# Platform services
platform:
orchestrator_enabled: false
control_center_enabled: false
mcp_enabled: false
# Secret management
secrets:
provider: "sops" # sops, kms
sops_enabled: true
kms_enabled: false
# KMS configuration
kms:
mode: "local" # local, remote, hybrid
config_file: "{{workspace.path}}/config/kms.toml"
# SOPS configuration
sops:
use_sops: true
config_path: "{{workspace.path}}/.sops.yaml"
key_search_paths:
- "{{workspace.path}}/.kms/keys/age.txt"
- "~/.config/sops/age/keys.txt"
# AI configuration (if enabled)
ai:
enabled: false
provider: "openai"
config_path: "{{workspace.path}}/config/ai.yaml"
# Task services configuration
taskservs:
run_path: "{{workspace.path}}/.runtime/taskservs"
# Clusters configuration
clusters:
run_path: "{{workspace.path}}/.runtime/clusters"
# Generation configuration
generation:
dir_path: "{{workspace.path}}/generated"
defs_file: "defs.toml"
# Cache configuration
cache:
enabled: true
path: "{{workspace.path}}/.cache/versions"
infra_cache: "{{paths.infra}}/{{infra.current}}/cache/versions"
grace_period: 86400
check_updates: false
max_cache_size: "10MB"
# Infrastructure context
infra:
current: "default" # Current infra context
# Tool Detection and Plugin Configuration
tools:
use_kcl: true
use_kcl_plugin: true
use_tera_plugin: true
# KCL Module Configuration
kcl:
# Core provisioning schemas
core_module: "{{workspace.path}}/kcl"
core_version: "0.0.1"
core_package_name: "provisioning_core"
# Dynamic module loading for extensions
use_module_loader: true
module_loader_path: "{{workspace.path}}/core/cli/module-loader"
# Workspace KCL module directory
modules_dir: ".kcl-modules"
# SSH Configuration
ssh:
user: ""
options: ["StrictHostKeyChecking=accept-new", "UserKnownHostsFile=/dev/null"]
timeout: 30
debug: false