how to get notified when puppet fact has some values

43 views
Skip to first unread message

Spriya

unread,
Nov 3, 2014, 2:43:50 PM11/3/14
to puppet...@googlegroups.com
Hi,

I have created  custom facts. how do i know if my custom facts exists  and if exists what is the value?

How can i do this in puppet manifests?

please help me


Andreas Dvorak

unread,
Nov 4, 2014, 4:54:30 AM11/4/14
to puppet...@googlegroups.com
Hi,

you can check it on the server with facter -p name_of_fact

in a class
 notify{"My fact: $::name_of_fact":}

Andreas

Ryan Anderson

unread,
Nov 4, 2014, 9:15:46 AM11/4/14
to puppet...@googlegroups.com
While this isn't in manifests, I'd recommend you setup puppetdb, then hook up the excellent puppetboard to it. It will give you visibility into such things.
Reply all
Reply to author
Forward
0 new messages