Hi folks, I''m using this plugin https://github.com/ripienaar/facter-facts/tree/master/facts-dot-d 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! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ozS0Ol78TNoJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
It''s finally working.... some guy thought it''s a good idea to comment the part out in the factsd script ^^ Am Donnerstag, 11. Oktober 2012 15:24:57 UTC+2 schrieb Jones:> > Hi folks, > > I''m using this plugin > https://github.com/ripienaar/facter-facts/tree/master/facts-dot-d > 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! >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/Ur5j_wsgjQsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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. On Thursday, October 11, 2012 6:24:57 AM UTC-7, Jones wrote:> > Hi folks, > > I''m using this plugin > https://github.com/ripienaar/facter-facts/tree/master/facts-dot-d > 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! >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/8j209ZU2cEkJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
R.I.Pienaar
2012-Oct-11 19:46 UTC
Re: [Puppet Users] Re: puppet facts.d executable PROBLEM
----- Original Message -----> From: "Ellison Marks" <gtyaoi@gmail.com> > To: puppet-users@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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.