Hi,

I've got a fresh new puppet installation running but I can't seem to get 
hiera working with the following setup:

OS: RHEL 6.5
Puppet Master: 3.7.1
Ruby: 2.0.0-p576
Hiera: 1.3.4


HIERA.YAML

Hiera.yaml
---
:hierarchy:
- "%{environment}"
- "common"
:backends:
- yaml
:yaml:
  :datadir: /etc/puppet/hieradan


/ETC/PUPPET/HIERADAN/LOCAL.YAML

---
linux-tempdirectory: '/tmp/'
windows-tempdirectory: 'C:\Temp'

Running the following command fails:
# hiera 'windows-tempdirectory' --config /etc/puppet/hiera.yaml --debug
/usr/local/rvm/gems/ruby-2.0.0-p576/gems/hiera-1.3.4/lib/hiera/config.rb:29:in 
`merge!': no implicit conversion of String into Hash (TypeError)
        from 
/usr/local/rvm/gems/ruby-2.0.0-p576/gems/hiera-1.3.4/lib/hiera/config.rb:29:in 
`load'
        from 
/usr/local/rvm/gems/ruby-2.0.0-p576/gems/hiera-1.3.4/lib/hiera.rb:45:in 
`initialize'
        from 
/usr/local/rvm/gems/ruby-2.0.0-p576/gems/hiera-1.3.4/bin/hiera:211:in `new'
        from 
/usr/local/rvm/gems/ruby-2.0.0-p576/gems/hiera-1.3.4/bin/hiera:211:in `<top 
(required)>'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/bin/hiera:23:in `load'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/bin/hiera:23:in `<main>'
        from 
/usr/local/rvm/gems/ruby-2.0.0-p576/bin/ruby_executable_hooks:15:in `eval'
        from 
/usr/local/rvm/gems/ruby-2.0.0-p576/bin/ruby_executable_hooks:15:in `<main>'

I have "local" set in my agent environment setting.

Any ideas what this could be as I'm really stuck with this at the moment?

Thanks

Dan


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e1568e98-5f3b-4af8-a907-7a734247abf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to