Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: hiera/files/classify.sh

Issue 4810150141493248: Issue 122 - Puppet ENC via Hiera (Closed)
Patch Set: Created Sept. 8, 2014, 11:56 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/bin/sh
2 HOSTNAME=`echo "$@" | sed 's/\..*$//'`
3 ( echo -n 'classes = '; hiera classes ::hostname=$HOSTNAME
4 echo -n 'parameters = '; hiera parameters ::hostname=$HOSTNAME
5 echo 'data = {"classes"=>classes, "parameters"=>parameters}'
6 echo 'print data.to_yaml' ) \
7 | ruby -ryaml
Wladimir Palant 2014/09/09 18:15:06 Wow, that's quite a hack... Why use a shell scrip
mathias 2014/10/08 03:02:33 Of course it's to be converted - this one here was
8
OLDNEW

Powered by Google App Engine
This is Rietveld