Commit d9b4ed2
Brice Figureau
Support for rewriting hiera datadir from multiple backends
When using hiera-eyaml with a hiera.yaml like:
~~~yaml
---
:backends:
- eyaml
- yaml
:eyaml:
:datadir: '/etc/puppet/code/environments/production/hieradata'
:yaml:
:datadir: '/etc/puppet/code/environments/production/hieradata'
...
~~~
Octocatalog-diff was rewriting only the yaml (and/or json) datadir
and not other backends datadir.
This changes rewrites all datadir from all declared backends.
Signed-off-by: Brice Figureau <brice@daysofwonder.com>1 parent cb95f1f commit d9b4ed2
3 files changed
Lines changed: 42 additions & 1 deletion
File tree
- lib/octocatalog-diff/catalog-util
- spec/octocatalog-diff
- fixtures/repos/default/config
- tests/catalog-util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
234 | 255 | | |
235 | 256 | | |
236 | 257 | | |
| |||
0 commit comments