Skip to main content

Hiera: Separating Data from Code

  • Chapter
  • First Online:
Pro Puppet

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."

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics