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/<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.


Reply via email to