On Sunday, August 30, 2015 at 11:44:45 PM UTC-5, Malintha Adikari wrote:
>
> Hi,
>
> Can I store and use my hiera data file in my puppet agent machine rather 
> than storing in in puppet master  ? Then how can I do it ?
>
>

The Puppet master always uses local hiera data when it compiles catalogs.  
Any data you want the target node to provide should be communicated via 
facts.  There are several alternatives for creating your own custom facts 
<https://docs.puppetlabs.com/facter/3.0/custom_facts.html#adding-custom-facts-to-facter>,
 
and none of them are difficult.  I linked you to the docs for the most 
recent version of Facter, but if you are using an earlier version you 
should look up and refer to that version's docs.

Alternatively, if you keep copies of the needed manifests and Puppet 
configuration on each node, then you can use 'puppet apply' instead of 
'puppet agent'.  Then catalog compilation will be performed on that node, 
without consulting a master.  Accordingly, all Hiera lookups will run 
against local data in that case.


John

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/611d2024-1724-4d8a-99f3-aa268c96ec6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to