Showing with 12 additions and 6 deletions.
  1. +5 −0 CHANGELOG
  2. +1 −1 Modulefile
  3. +2 −1 README.md
  4. +4 −4 templates/hiera.yaml.erb
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2014-03-25 Release 1.0.1
Bugfixes:
- Readme tweak
- Use template instance variables to remove warnings

2014-02-27 Release 1.0.0

Features:
Expand Down
2 changes: 1 addition & 1 deletion Modulefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name 'hunner-hiera'
version '1.0.0'
version '1.0.1'
source 'UNKNOWN'
author 'hunner'
license 'BSD'
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class { 'hiera':
The resulting output in /etc/puppet/hiera.yaml:
```yaml
---
:backends: - yaml
:backends:
- yaml
:logger: console
:hierarchy:
- "%{environment}/%{calling_class}"
Expand Down
8 changes: 4 additions & 4 deletions templates/hiera.yaml.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
:backends:
<%= backends.to_yaml.split("\n")[1..-1].join("\n") %>
<%= @backends.to_yaml.split("\n")[1..-1].join("\n") %>
:logger: console
:hierarchy:
<%= hierarchy.to_yaml.split("\n")[1..-1].join("\n") %>
<%= @hierarchy.to_yaml.split("\n")[1..-1].join("\n") %>

:yaml:
:datadir: <%= datadir %>
:datadir: <%= @datadir %>
<%= extra_config %>
<%= @extra_config %>