What is the preferred method for getting back a single custom fact now that facter -p is deprecated?

46 views
Skip to first unread message

Trevor Vaughan

unread,
Oct 23, 2015, 5:46:41 PM10/23/15
to puppet...@googlegroups.com
While I'm a master of parsing clumped JSON by eye, not everyone might be...

Thanks,

Trevor

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

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

Peter Huene

unread,
Oct 23, 2015, 6:00:10 PM10/23/15
to puppet...@googlegroups.com
Hi Trevor,

On Fri, Oct 23, 2015 at 2:46 PM, Trevor Vaughan <tvau...@onyxpoint.com> wrote:
While I'm a master of parsing clumped JSON by eye, not everyone might be...

TL;DR: you may continue to use the `--puppet` option in Facter 3.0.2+.

We reversed course on removing the `--puppet` option from Facter in 3.0.2 as there was no suitable replacement in place ("puppet facts" just doesn't cut it).  While it's still considered to be "deprecated" in the sense that we don't like having a "reverse" dependency on Puppet from Facter, I don't think we have plans to implement a replacement any time soon.

If you have a single location where your custom facts are stored, you may also pass the "--custom-dir" option to Facter to let it search the given directory for custom facts; it's an easy alternative if you're just hacking a custom fact together without a Puppet module in place.
 

Thanks,

Trevor

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

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

--
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/CANs%2BFoVkcY6h9uJYAmACogR0EAggNbfhnPGYQf4yoMJcpH6ebA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Trevor Vaughan

unread,
Oct 25, 2015, 11:14:41 AM10/25/15
to puppet...@googlegroups.com
Got it, thanks for the update!

Trevor


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages