Skip to content

Commit

Permalink
Add hiera example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsheltren committed Jan 24, 2015
1 parent 2c2e970 commit b933e78
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------------
Expand Down

0 comments on commit b933e78

Please sign in to comment.