Left: | ||
Right: |
OLD | NEW |
---|---|
(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 | |
OLD | NEW |