hiera broken in puppet-3

285 views
Skip to first unread message

asq

unread,
Oct 26, 2012, 8:14:56 AM10/26/12
to puppet...@googlegroups.com
is anybody using hiera with puppet-3 and per-module hierarchy?
it seems calling_module/calling_class is entirely broken now.

see: http://pastebin.com/CfbW5Kcu and #16730 and PR1214 (which only fixes backend_puppet i think).

anyone has some unofficial patches? because i'm just stuck in migration :(
please don't advise me to use data bindings as there is no way to use them in 2.7 and we need seamless migration path.

Ellison Marks

unread,
Oct 26, 2012, 12:19:22 PM10/26/12
to puppet...@googlegroups.com
I think that might have been renamed...

http://docs.puppetlabs.com/puppet/3/reference/lang_variables.html#facts-and-built-in-variables

Down near the bottom, under parser set variables, there's $module_name and $caller_module_name. That what you meant to use?

asq

unread,
Oct 29, 2012, 7:11:09 AM10/29/12
to puppet...@googlegroups.com
W dniu piątek, 26 października 2012 18:19:22 UTC+2 użytkownik Ellison Marks napisał:
I think that might have been renamed...

http://docs.puppetlabs.com/puppet/3/reference/lang_variables.html#facts-and-built-in-variables

Down near the bottom, under parser set variables, there's $module_name and $caller_module_name. That what you meant to use?

it seems it's also broken: http://pastebin.com/irVAq407
i intend to model my hierarchy based on calling class (ie. put mysql specific things in mysql.yaml) .

asq

unread,
Oct 29, 2012, 2:04:48 PM10/29/12
to puppet...@googlegroups.com
ok, i got it working with this patch: https://github.com/Fewbytes/puppet/commit/71d9449464d5f10042b9cc31aea1586f98363293
however, if i apply the rest of this PR it breaks again. so beware :)

Peter De Cleyn

unread,
Dec 12, 2012, 11:39:59 AM12/12/12
to puppet...@googlegroups.com
I just did the same process of debugging you did (should learn to search this list first) and the proposed solution works for me.

Did you file this as a bug yet on the puppet ticketing system (can't find it there)  so I can vote ;-)

Peter 


On Mon, Oct 29, 2012 at 7:04 PM, asq <asq...@gmail.com> wrote:
ok, i got it working with this patch: https://github.com/Fewbytes/puppet/commit/71d9449464d5f10042b9cc31aea1586f98363293
however, if i apply the rest of this PR it breaks again. so beware :)

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/iOiOln1U40kJ.

To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

asq

unread,
Dec 12, 2012, 11:46:40 AM12/12/12
to puppet...@googlegroups.com, pe...@decleyn.net
W dniu środa, 12 grudnia 2012 17:39:59 UTC+1 użytkownik Peter De Cleyn napisał:
I just did the same process of debugging you did (should learn to search this list first) and the proposed solution works for me.

Did you file this as a bug yet on the puppet ticketing system (can't find it there)  so I can vote ;-)
Reply all
Reply to author
Forward
0 new messages