provisioning-code/templates/workspace/nickel/lib/provider_defaults.ncl

63 lines
1.3 KiB
Text
Raw Permalink Normal View History

# Generic Provider Defaults
# Override this in workspace configs with provider-specific defaults
# (hetzner_defaults.ncl, upcloud_defaults.ncl, oci_defaults.ncl, etc.)
let provisioning = import "schemas/main.ncl" in
let lib = provisioning.lib in
{
# Provider identity (override with specific provider)
provider = "generic",
# Network configuration
network_private_ip = null,
network_public_ip = null,
network_ipv6 = false,
# Liveness probing
liveness_ip = "{{network_public_ip}}",
liveness_port = 22,
liveness_interval = 300,
# Default storage configuration
storages = [
({
name = "root",
size = 20,
total = 20,
type = "ext4",
mount = true,
mount_path = "/",
fstab = true,
parts = [
{
name = "root",
size = 20,
total = 20,
type = "ext4",
mount = true,
mount_path = "/",
},
],
} | lib.Storage)
],
# Default plan/instance type
plan = "2xCPU-2GB",
# Labels and metadata
labels = "provisioning=true",
extra_hostnames = [],
# Taskservs list
taskservs = [],
# Server lifecycle
not_use = false,
nixos_anywhere_enabled = false,
# Cloud API settings
cloud_api_enabled = false,
region = "default",
}