erb-hiera 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -0
- data/example/config.yaml +10 -0
- data/example/hiera.yaml +12 -0
- data/example/hiera/common.yaml +1 -0
- data/example/hiera/environment/dev.yaml +1 -0
- data/example/hiera/environment/stage.yaml +1 -0
- data/example/output/dev/template.txt +2 -0
- data/example/output/stage/template.txt +2 -0
- data/example/templates/template.txt +2 -0
- data/lib/erb-hiera.rb +1 -1
- data/lib/erb-hiera/version.rb +1 -1
- metadata +9 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a6f2b4aa5eea06a3ce6db8a7d2d1bf9a21f8e12
|
4
|
+
data.tar.gz: a4358d3c004e05a31fafb0b4f2c94492ad1f71d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40c3159c55add88589e2afd08d5081631f1146c5f94daf972274bb417c8e81786ff2c884798762fc86cdb0406423047a59bceb9273a4fd4f6d6f859a1bfe3e3b
|
7
|
+
data.tar.gz: ea6e6132bf150202d86157c6db3f3cb06cd8aa0a21c2afbbebc754dc934a93984a9828df79188e24e30fdbeef662dc1cb955ae80b70cda778f23277c2ff944e3
|
data/README.md
CHANGED
@@ -1,7 +1,35 @@
|
|
1
1
|
# erb-hiera
|
2
2
|
|
3
|
+
## About
|
4
|
+
|
5
|
+
Generate documents from a scope, ERB template(s) and Hiera Data
|
6
|
+
|
3
7
|
## Install
|
4
8
|
|
5
9
|
```
|
6
10
|
gem install erb-hiera
|
7
11
|
```
|
12
|
+
|
13
|
+
## Usage
|
14
|
+
|
15
|
+
```
|
16
|
+
$ ./bin/erb-hiera --help
|
17
|
+
Options:
|
18
|
+
--config=<s> specify config file
|
19
|
+
--hiera-config=<s> specify hiera config file
|
20
|
+
--dry-run don't write out files
|
21
|
+
--verbose print compiled template(s)
|
22
|
+
--debug print backtrace on error
|
23
|
+
```
|
24
|
+
|
25
|
+
## Example
|
26
|
+
|
27
|
+
```
|
28
|
+
cd example
|
29
|
+
erb-hiera --config config.yaml --hiera-config hiera.yaml --verbose
|
30
|
+
```
|
31
|
+
|
32
|
+
## References
|
33
|
+
|
34
|
+
* [erb](http://www.stuartellis.name/articles/erb/#writing-templates)
|
35
|
+
* [hiera](https://docs.puppet.com/hiera/)
|
data/example/config.yaml
ADDED
data/example/hiera.yaml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
common: "some common variable"
|
@@ -0,0 +1 @@
|
|
1
|
+
environment::description: "this is the development environment"
|
@@ -0,0 +1 @@
|
|
1
|
+
environment::description: "this is the staging environment"
|
data/lib/erb-hiera.rb
CHANGED
data/lib/erb-hiera/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erb-hiera
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Wilson
|
@@ -103,6 +103,14 @@ extra_rdoc_files: []
|
|
103
103
|
files:
|
104
104
|
- README.md
|
105
105
|
- bin/erb-hiera
|
106
|
+
- example/config.yaml
|
107
|
+
- example/hiera.yaml
|
108
|
+
- example/hiera/common.yaml
|
109
|
+
- example/hiera/environment/dev.yaml
|
110
|
+
- example/hiera/environment/stage.yaml
|
111
|
+
- example/output/dev/template.txt
|
112
|
+
- example/output/stage/template.txt
|
113
|
+
- example/templates/template.txt
|
106
114
|
- lib/erb-hiera.rb
|
107
115
|
- lib/erb-hiera/cli.rb
|
108
116
|
- lib/erb-hiera/directory.rb
|