What is the puppet way to send configuration details along with the request from the puppet ?

28 views
Skip to first unread message

Malintha Adikari

unread,
Jun 16, 2014, 1:40:43 AM6/16/14
to puppet...@googlegroups.com
Hi,

I am new to puppet. In my puppet master side I want to create some configurations dynamically. For that I have to send those configuration details along with the puppet agent request to the master. I have plenty of configurations details to be sent with a request. Does Puppet support this kind of operation. How can I achieve this ?

Regards,
Malintha Adiakri

Christopher Wood

unread,
Jun 16, 2014, 9:33:35 AM6/16/14
to puppet...@googlegroups.com
It sounds like you want to use facts to make decisions about what configurations to apply:

http://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html
http://docs.puppetlabs.com/guides/custom_facts.html

The usual caveat here tends to be that you should be telling the host what to configure, not configuring based on what the machine thinks.

To store configuration details in a straightforward fashion, you should probably be looking into hiera:

http://docs.puppetlabs.com/hiera/1/
> --
> 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 [1]puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> [2]https://groups.google.com/d/msgid/puppet-users/be2e1f24-1515-4f5e-8c4a-7d488b473d8e%40googlegroups.com.
> For more options, visit [3]https://groups.google.com/d/optout.
>
> References
>
> Visible links
> 1. mailto:puppet-users...@googlegroups.com
> 2. https://groups.google.com/d/msgid/puppet-users/be2e1f24-1515-4f5e-8c4a-7d488b473d8e%40googlegroups.com?utm_medium=email&utm_source=footer
> 3. https://groups.google.com/d/optout

Malintha Adikari

unread,
Jun 17, 2014, 7:35:44 AM6/17/14
to puppet...@googlegroups.com, christop...@pobox.com
Thank you very much. Yes I have strated implementing it using external facts.
Reply all
Reply to author
Forward
0 new messages