Re: enabling facts hash - SOLVED

176 views
Skip to first unread message

Matt Zagrabelny

unread,
Nov 11, 2015, 10:59:56 AM11/11/15
to puppet...@googlegroups.com
On Wed, Nov 11, 2015 at 9:42 AM, Matt Zagrabelny <mzag...@d.umn.edu> wrote:
> Greetings,
>
> I'm getting ready to spin up a puppet 3.7 environment (Debian Jessie)
> and was reading about the top level $facts hash that holds the
> client's facts. The puppet documentation states that it is off by
> default in the open source version [1].
>
> "Drawbacks: Only works with Puppet 3.5 or later. Disabled by default
> in open source releases prior to Puppet 4.0."
>
> I grepped the configs on my puppet master and didn't see what config I
> need to change to enable this feature.
>
> # puppet config print | grep fact
> cfacter = false
> facts_terminus = facter
> inventory_terminus = facter
> stringify_facts = true
> node_name_fact =
> dynamicfacts = memorysize,memoryfree,swapsize,swapfree
> pluginfactdest = /var/lib/puppet/facts.d
> pluginfactsource = puppet://puppet/pluginfacts
> factpath = /var/lib/puppet/lib/facter
>
> Any ideas on how to enable this feature?

From [2]:

trusted_node_data = true (Puppet master/apply only) — This enables the
$trusted and $facts hashes, so you can start using them in your own
code.

Cheers,

-m

[2] http://docs.puppetlabs.com/puppet/3.8/reference/config_important_settings.html
Reply all
Reply to author
Forward
0 new messages