hiera 1.3.0 breaks puppet standalone

348 views
Skip to first unread message

Ronen

unread,
Dec 11, 2013, 10:31:58 AM12/11/13
to puppet...@googlegroups.com
It seems as if latest hiera (1.3.0) breaks puppet standalone, running:

puppet apply --modulepath=modules:static-modules manifests/default.pp --hiera_config hiera.yaml

Where hiera.yaml is:

---
:backends:
 - yaml
:logger: console
:hierarchy:
 - '%{::virtual}'
 - common
:yaml:
   :datadir: hieradata

And virtualbox.yaml is (empty yaml file):
---


Results with:

Error: Puppet::Parser::AST::Resource failed with error TypeError: Data retrieved from hieradata/virtualbox.yaml is String not Hash at 

I wanted to open an issue but didn't manage to figure how to do this on puppet website

Any clues on how to resolve this?

Dan White

unread,
Dec 11, 2013, 11:03:32 AM12/11/13
to puppet...@googlegroups.com
I got a similar error, but found a fix.
Put a placeholder data value in your yaml file or remove it.

I will try opening an issue.

“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)


From: "Ronen" <nar...@gmail.com>
To: puppet...@googlegroups.com
Sent: Wednesday, December 11, 2013 10:31:58 AM
Subject: [Puppet Users] hiera 1.3.0 breaks puppet standalone
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/57671863-3dc2-4a34-b177-c3c98dbbe9e9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Dan White

unread,
Dec 11, 2013, 11:06:28 AM12/11/13
to puppet...@googlegroups.com


“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)


From: "Ronen" <nar...@gmail.com>
To: puppet...@googlegroups.com
Sent: Wednesday, December 11, 2013 10:31:58 AM
Subject: [Puppet Users] hiera 1.3.0 breaks puppet standalone

--

Ronen

unread,
Dec 11, 2013, 11:38:01 AM12/11/13
to puppet...@googlegroups.com
Hey Ygor, this seems to effect classes with parameters such as https://github.com/puppetlabs/puppetlabs-apt/blob/master/manifests/init.pp

I can't add parameters for any external class I use (thats what defaults are for), 

It looks as if the parameters values are searched via hiera and fail, also note that the issue you referenced for puppet agent with master (no standalone) and has a different error:

 Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty?' for false:FalseClass at /etc/puppet/environments/production/modules/resolv/manifests/params.pp:22 on node xxx


While my error is:


Error: Puppet::Parser::AST::Resource failed with error TypeError: Data retrieved from hieradata/virtualbox.yaml is String not Hash at 

Thanks

Dan White

unread,
Dec 11, 2013, 12:28:25 PM12/11/13
to puppet...@googlegroups.com


“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)


From: "Ronen" <nar...@gmail.com>
To: puppet...@googlegroups.com
Sent: Wednesday, December 11, 2013 11:38:01 AM
Subject: Re: [Puppet Users] hiera 1.3.0 breaks puppet standalone

Ronen

unread,
Dec 11, 2013, 12:30:15 PM12/11/13
to puppet...@googlegroups.com
Ok ill give master a try to see if it resolve my issue, 

Thanks!

Dan White

unread,
Dec 11, 2013, 12:34:37 PM12/11/13
to puppet...@googlegroups.com
Please report results.

Good luck


“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)


From: "Ronen" <nar...@gmail.com>
To: puppet...@googlegroups.com
Sent: Wednesday, December 11, 2013 12:30:15 PM

Ronen

unread,
Dec 11, 2013, 2:08:28 PM12/11/13
to puppet...@googlegroups.com
Yeap hiera-1.3.0.16 (current master) fixes the issue, in order to build it:


$ git clone g...@github.com:puppetlabs/hiera.git 
$ rake package:bootstrap
rake package:gem

Now ill wait for it to be pushed out to rubygems

Thanks
Reply all
Reply to author
Forward
0 new messages