tenks/ansible/override.yml.example

65 lines
2.4 KiB
Plaintext

---
# This is an example override file, which can be used as a template for your
# own override file.
# node_types is a dict that defines different sets of node specifications,
# keyed by a 'node type name' to associate with each set of specifications.
node_types:
# The type name.
type0:
# The amount of RAM, in mebibytes.
memory_mb: 1024
# The number of virtual CPUs.
vcpus: 1
# A list of volumes, each with a capacity.
volumes:
- capacity: 2GB
# A list of physical network names to connect to. These physical network
# names should be keyed in `physnet_mappings` in each hypervisor's host
# vars.
physical_networks:
- physnet0
# specs is a list of configurations of nodes to be created. Each configuration
# can specify the number of nodes to be created, the type (from `node_types`)
# of these nodes, and optionally configuration for the Ironic nodes to be
# enroled from these nodes. If `ironic_config` is not set, Ironic enrolment
# will be skipped for that spec.
specs:
# The type in `node_types` that this spec refers to. Required.
- type: type0
# The number of nodes to create of this spec. Required.
count: 3
# The Ironic configuration for nodes of this spec. Optional.
ironic_config:
# The resource class that nodes of this spec should use in Ironic.
# Required if `ironic_config` has been specified.
resource_class: my_rc
# nova_flavors is a list of Nova flavors to be created. Each flavor must
# specify the resource class it is associated with, as well as the Tenks node
# type whose hardware specs should be used.
nova_flavors:
# Required.
- resource_class: my_rc
# Required.
node_type: type0
# The Glance name or UUID of the image to use for the deployment kernel.
deploy_kernel: ipa.vmlinuz
# The Glance name or UUID of the image to use for the deployment ramdisk.
deploy_ramdisk: ipa.initramfs
# Map physical network names to their source device. This can be either an
# existing interface or an existing bridge.
# Remember that if the mappings are specified in this file, they will apply to
# all hosts unless specific mappings are specified in individual host_vars
# files.
physnet_mappings:
physnet0: brfoo
# Whether to wait for nodes' resources to be registered in the Placement
# service. If the Placement service is not in use, for example in standalone
# ironic installations, this flag should be set to 'false'.
wait_for_placement: true