Can I store my hiera data file inside puppet agent side

58 views
Skip to first unread message

Malintha Adikari

unread,
Aug 31, 2015, 12:44:45 AM8/31/15
to Puppet Users
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 ?

Regards,
Malintha

Trevor Vaughan

unread,
Aug 31, 2015, 9:02:25 AM8/31/15
to puppet...@googlegroups.com
Hi Malintha,

Well, the answer is that you can place it on the client but I'm not sure what you're trying to accomplish as it won't be used by client side activities.

This is because the values can change during compile time based on variables that you set in your code (and facts).

If you could provide some additional details, it would be easier to provide you with an answer that might meet your goals.

Thanks,

Trevor

--
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/d1f8e027-ea7d-4a56-bce9-93e7f4b12a78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699

-- This account not approved for unencrypted proprietary information --

jcbollinger

unread,
Aug 31, 2015, 9:04:02 AM8/31/15
to Puppet Users


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, 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

Reply all
Reply to author
Forward
0 new messages