Skip to content

yaml_anchors

Tanveer Alam edited this page Dec 7, 2019 · 1 revision

Anchors

Anchors:

  • Store and reuse data
  • Anchor names can be used
  • Define anchor with &
  • Reference anchor data with *
  • Anchor a single scalar:
---
host: phl-42
datacenter:
  location: &PHL Philadelpia
---
host: phl-43
datacenter: *PHL
  • Or a collection:
---
roles: &wphost
  - webserver
  - wp_database
...
---
roles: *wphost

HELM


YAML Essentials


Helm Deep Dive

Clone this wiki locally