Re: [Puppet Users] Re: Casting Fixnum to String (Hiera/YAML)

2012-03-02 Thread Lars Francke
Hi Krzysztof, >> I guess the question boils down to: Is there a way to cast from Fixnum >> to String? > > Yes, look below :) Excellent! > Take a look on this: > > https://github.com/kwilczynski/puppet-functions/blob/master/lib/puppet/parser/functions/num2str.rb > > And this: > > https://github.c

[Puppet Users] Re: Casting Fixnum to String (Hiera/YAML)

2012-03-01 Thread Krzysztof Wilczynski
Hi Lars, [...] > It would be nice for a plain Integer (Fixnum) to work as well when > it's coming from a YAML file. When you introduce a numeric value through the manifest, then Puppet will do the right thing during parsing it, but when you introduce Integer or Float from Hiera, then you will get