From b933e78c8cbaf221f39cb59de339760d264ee881 Mon Sep 17 00:00:00 2001 From: Jeff Sheltren Date: Sat, 24 Jan 2015 06:13:05 -0800 Subject: [PATCH] Add hiera example to README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 89aea3f..ad8e4c2 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,20 @@ class { 'yumrepos::epel': } ``` +Example Using Hiera +------------------- +This example shows how you can configure the yumrepos classes using Hiera. + +Hiera yaml configuration file (common, per-host, or whatever you have setup in your case): +``` +yumrepos::epel::epel_url: 'http://your.local.mirror.com/epel/' +yumrepos::epel::epel_exclude: 'drupal*' +``` + +And then the class can be called from your puppet manifests without having to pass any of the parameters: +``` +class { 'yumrepos::epel': } +``` General Information -------------------