Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (24 loc) · 681 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 681 Bytes

Hiera 5 usage example

Hiera is an External Node Classifier (ENC). The idea behind this is to keep (node specific) data and Puppet logic in separate places.

Therefore we will only tell Puppet which classes to include

# manifests/site.pp
include cups

and use Hiera to provide the actual data

# data/common.yaml
---
  # Configure Class['cups']
  cups::default_queue: Warehouse
  cups::web_interface: true
  # Create `cups_queue` resources using Hiera
  cups::resources:
    Warehouse:
      ensure: printer
      model: drv:///sample.drv/generic.ppd
      uri: socket://warehouse.initech.com

This directory contains a fully functional usage example.