I'm wandering when using hiera if a single lookup is done at the start of the puppet run or if everytime a value needs to be looked up the file is accesed or in this case the http api queried?
Thanks
Ellison Marks
unread,
Aug 20, 2015, 1:16:41 PM8/20/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Puppet Users
In general, every time a hiera* function is called, the backend's lookup function will be called. Any caching decisions are performed by the backend code. In the case of this http-backend, I see a few parameters relating to caching, specifically cache_timeout and cache_clean interval, so I'm guessing it performs some caching.
Craig Dunn
unread,
Aug 21, 2015, 3:15:55 AM8/21/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Hiera will pass the query to the backend on every lookup. In the
particular case of hiera-http (since 1.3) you can enabling caching to
reduce the number of HTTP API queries using the cache_timeout and
cache_clean_interval flags.