Abstract
With Puppet 3.0, Puppet has a tool called Hiera (short for Hierarchal data store), built into its core. Hiera was developed in 2011 to allow Puppeteers to separate configuration from code. Puppet is very good at describing state, but using Puppet code as a place to store configuration data eventually becomes inconvenient. Hiera solves this problem by performing external lookups for data, and then exposing that data to the Puppet compiler. Two good candidates for data that can be hoisted out of Puppet code and into Hiera are, generally, "arbitrary site-specific strings" and "lists of things."
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Spencer Krum
About this chapter
Cite this chapter
Krum, S., Hevelingen, W.V., Kero, B., Turnbull, J., McCune, J. (2013). Hiera: Separating Data from Code. In: Pro Puppet. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6041-7_12
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6041-7_12
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6040-0
Online ISBN: 978-1-4302-6041-7
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books