# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
# Configuration of the node repository
namespace=config.provisioning

# A node flavor which (may) be available in this zone.
# This is to allow configuration per flavor.
# If a certain flavor has no config it is not necessary to list it here to use it.
flavor[].name string

# Names of other flavors (whether mentioned in this config or not) which this flavor
# is a replacement for: If one of these flavor names are requested, this flavor may
# be assigned instead.
# Replacements are transitive: If flavor a replaces b replaces c, then a request for flavor
# c may be satisfied by assigning nodes of flavor a.
flavor[].replaces[].name string

# The monthly Total Cost of Ownership (TCO) in USD. Typically calculated as TCO divided by
# the expected lifetime of the node (usually three years).
flavor[].cost int default=0

# NOT USED
flavor[].stock bool default=true

# The type of node: BARE_METAL, VIRTUAL_MACHINE or DOCKER_CONTAINER
flavor[].environment string default="undefined"

# The minimum number of CPU cores available.
flavor[].minCpuCores double default=0.0

# The minimum amount of main memory available.
flavor[].minMainMemoryAvailableGb double default=0.0

# The minimum amount of disk available.
flavor[].minDiskAvailableGb double default=0.0

# Whether the disk is fast (typically SSD) or slow (typically spinning HDD).
flavor[].fastDisk bool default=true

# Expected network interface bandwidth available for this flavor, in Mbit/s.
flavor[].bandwidth double default=0.0

# The flavor is retired and should no longer be used.
flavor[].retired bool default=false

