json_pure will also work for hiera-json and won't require ruby-devel to install the gem.
On Fri, May 3, 2013 at 2:46 PM, Geronimo Orozco <[email protected]> wrote: > Oh thanks for you reply Andy :-) > > Yes I was using the PuppetLabs MSI > > Yes, json is not installed and it is not trivial to install the gem using > the puppet embedded puppet ruby, I had to download ruby developmentkit and > compile native :-). And I wanted to be as simple and clean as possible to > install and use puppet without development tools/frameworks to compile it on > each server. > > Thanks for your reply > > > On Fri, May 3, 2013 at 1:23 PM, Andy Parker <[email protected]> wrote: >> >> On Thu, May 2, 2013 at 6:57 PM, Geronimo Orozco <[email protected]> wrote: >>> >>> Hello, >>> >>> >>> Sems that hiera json backend is broken on puppet 3.1.1 for windows :-( >>> >> >> Sorry to hear that :( The error that you show below is that the json >> library doesn't seem to be installed. Assuming you used the Puppet Labs >> produced MSI we should have that installed. I was just testing out the MSI >> for the upcoming 3.2 release and verified that it works there. >> >>> >>> >>> From this example: >>> http://www.craigdunn.org/2011/10/puppet-configuration-variables-and-hiera/ >>> >>> >>> -- hiera.yaml -- >>> >>> C:\Users\Administrator\temp> >>> type hiera.yaml >>> :backends: - json >>> >>> :logger: console >>> >>> :hierarchy: - %{env} >>> - common >>> :json: >>> :datadir: hieradata >>> >>> >>> C:\Users\Administrator\temp\hieradata>type common.json >>> { >>> "webname": "localhost" >>> } >>> >>> C:\Users\Administrator\temp\hieradata>type dev.json >>> { >>> "webname": "dev.app.local" >>> } >>> >>> >>> C:\Users\Administrator\temp>hiera -c hiera.yaml webname >>> >>> C:/Puppet/sys/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >>> `gem >>> original_require': no such file to load -- json (LoadError) >>> from >>> C:/Puppet/sys/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require. >>> b:36:in `require' >>> from C:/Puppet/hiera/lib/hiera/backend/json_backend.rb:5:in >>> `initialize >>> >>> from C:/Puppet/hiera/lib/hiera/backend.rb:158:in `new' >>> from C:/Puppet/hiera/lib/hiera/backend.rb:158:in `lookup' >>> from C:/Puppet/hiera/lib/hiera/backend.rb:156:in `each' >>> from C:/Puppet/hiera/lib/hiera/backend.rb:156:in `lookup' >>> from C:/Puppet/hiera/lib/hiera.rb:62:in `lookup' >>> from C:/Puppet/hiera/bin/hiera:220 >>> --- >>> Any clues ? >>> >>> >>> >>> -Geronimo >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Puppet Developers" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/puppet-dev?hl=en. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >> >> >> >> >> -- >> Andrew Parker >> [email protected] >> Freenode: zaphod42 >> Twitter: @aparker42 >> Software Developer >> >> Join us at PuppetConf 2013, August 22-23 in San Francisco - >> http://bit.ly/pupconf13 >> Register now and take advantage of the Early Bird discount - save 25%! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/puppet-dev?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/puppet-dev?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Matthaus Owens Release Manager, Puppet Labs Join us at PuppetConf 2013, August 22-23 in San Francisco - http://bit.ly/pupconf13 Register now and take advantage of the Early Bird discount - save 25%! -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-dev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
