puppet facts.d executable PROBLEM

132 views
Skip to first unread message

Jones

unread,
Oct 11, 2012, 9:24:57 AM10/11/12
to puppet...@googlegroups.com
Hi folks,

and I can't get a fact out of a simple shell script. YAML TXT JSON works well

My little shell script testfact.sh looks like

#!/bin/bash
echo "TEST=NOT WORKING"

made it executable
chmod +x testfact.sh

made a puppet agent -t to read the new fact

BUT 
$facter --puppet 
is not getting the fact

Thanx a lot!

Jones

unread,
Oct 11, 2012, 10:16:00 AM10/11/12
to puppet...@googlegroups.com
It's finally working.... some guy thought it's a good idea to comment the part out in the factsd script ^^

Ellison Marks

unread,
Oct 11, 2012, 2:04:41 PM10/11/12
to puppet...@googlegroups.com
The facter dot d plugin is probably in a little bit of flux right now. I know it was included in the puppet stdlib module for a while, but it apparently was recently removed from there(commit 8fc00ea5b6b39b220ebc6391489915dbeeb364ab). R.I.P's version is what the stdlib version was based on, and is a little on the old side now, I believe, which could be why part of it was commented. I'm not sure if there are plans to include that plugin in a more core role in the future, perhaps one of the puppet team could comment on that.

R.I.Pienaar

unread,
Oct 11, 2012, 3:46:22 PM10/11/12
to puppet...@googlegroups.com


----- Original Message -----
> From: "Ellison Marks" <gty...@gmail.com>
> To: puppet...@googlegroups.com
> Sent: Thursday, October 11, 2012 7:04:41 PM
> Subject: [Puppet Users] Re: puppet facts.d executable PROBLEM
>
> The facter dot d plugin is probably in a little bit of flux right
> now. I know it was included in the puppet stdlib module for a while,
> but it apparently was recently removed from there(commit
> 8fc00ea5b6b39b220ebc6391489915dbeeb364ab) . R.I.P's version is what
> the stdlib version was based on, and is a little on the old side
> now, I believe, which could be why part of it was commented. I'm not
> sure if there are plans to include that plugin in a more core role
> in the future, perhaps one of the puppet team could comment on that.
>

the released version of puppetlabs-stdlib on the puppet forge still has
the facts.d plugin included and its newer than mine - based on mine but
improved.

facter 2 will have it merged with it and the stdlib will then remove
facts.d properly

Reply all
Reply to author
Forward
0 new messages