Is hiera broken in FOSS Puppet 3.7.2?

12 views
Skip to first unread message

Peter Berghold

unread,
Sep 26, 2017, 12:35:29 PM9/26/17
to puppet-users
Seeing things like doing a hiera lookup inside a manifest such as

$somevar = hiera('randomvalue','notfound') 

returning nils and other odd behavior.  

I have a hiera.yaml file that looks like:

---
:backends:
  - yaml
:merge_behavior: deeper
:deep_merge_options: {}
:yaml:
  :datadir: "/etc/puppet/environments/%{environment}/hieradata"
:hierarchy:
  - "function/${::facts.host_function}"
  - "datacenter/%{::facts.sitename}"
  - "nodes/%{fqdn}"
  - "common_classes"
  - "common"

and yet I see both the nodes and common_classes being ignored.    

Of more concern to me is I'm trying to set values such as 

somemod::parms::value1:  somevalue 

and that's being ignored.  

Puppet.conf is configured correctly because it *is* finding a class list in common.yaml but nowhere else. 


Thoughts? 

Rob Nelson

unread,
Sep 26, 2017, 1:46:36 PM9/26/17
to puppet...@googlegroups.com
If I had to guess, it would be that the merge settings either don't exist or are buggy in 3.7.2. 3.8 was EOL in December last year, if you have to stick with 3 I'd suggest at least trying it with 3.8. 

--
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/CAArvnv2ssHekfEX9Asi4eEriQqJ0ohgbyg%3DGSvM%2B0L_eGU2RUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
Rob Nelson

Peter Berghold

unread,
Sep 26, 2017, 3:32:34 PM9/26/17
to puppet...@googlegroups.com
I was afraid that would be an answer I got... :-) 

There are plans to move to Puppet 4 where I know all this works but given I have to support all this on RHEL 6.x there may be some obstacles there.   I would LOVE to wave a magic wand and make Puppet 3.x go away.... 

So.. 3.8 eh?  There's something to investigate....


Rob Nelson

unread,
Sep 26, 2017, 3:33:27 PM9/26/17
to puppet...@googlegroups.com
If it helps, I use Puppet 4 and RHEL6 all the time!
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
--
Rob Nelson

--
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+unsubscribe@googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAArvnv1Mnqs1B_ZAUUFSb1xSifUu6X%2Birj41C9j1UJa%2Bprg2QQ%40mail.gmail.com.

Ramin K

unread,
Sep 26, 2017, 3:58:09 PM9/26/17
to puppet...@googlegroups.com
Puppet 4 ships as an all in one package so you can even run it on
Centos5 since it's ships with it's own Ruby, etc.

http://yum.puppetlabs.com/el/6/PC1/x86_64/

Ramin
> <mailto:puppet-users...@googlegroups.com>.
> <https://groups.google.com/d/msgid/puppet-users/CAArvnv2ssHekfEX9Asi4eEriQqJ0ohgbyg%3DGSvM%2B0L_eGU2RUw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> Rob Nelson
>
> --
> 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
> <mailto:puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAC76iT8LVV3HzOC-9eKDyHJKhJTdGjEY9j5jWYqafW8BY6GYnQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAC76iT8LVV3HzOC-9eKDyHJKhJTdGjEY9j5jWYqafW8BY6GYnQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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
> <mailto:puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAArvnv1Mnqs1B_ZAUUFSb1xSifUu6X%2Birj41C9j1UJa%2Bprg2QQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAArvnv1Mnqs1B_ZAUUFSb1xSifUu6X%2Birj41C9j1UJa%2Bprg2QQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages