Problems with external facts

15 views
Skip to first unread message

Daniele Testa

unread,
Apr 25, 2015, 10:01:17 AM4/25/15
to puppet...@googlegroups.com
Hi,

I am running into problems with external Facts.

I am trying to add an external textfile fact to all our nodes. Then I want to use this fact with "classification" in Puppet Enterprise to assign these nodes to a certain group.

1.
I am adding a fact file on the nodes:
echo "role=webserver" > /etc/puppetlabs/facter/facts.d/role.txt

2.
I see the facts correctly in the Web UI. It is listed together with all the other facts on each node, so the value gets transferred correctly to the Puppet Master.

3.
I go to classification and add a new group called "webserver".
But when I am trying to add a rule there, the autocomplete does not include my custom "role" fact.
If I type it manually and set it to "is webserver", it still shows 0 nodes being found.

Do I have to add something more to make external facts available to "classification" or is this a bug?

Thanks in advance!
Reply all
Reply to author
Forward
0 new messages