[Puppet Users] Re: Custom Fact Help? Works in ruby, but not facter...

2014-05-30 Thread smalderma
John, Thanks for the assist. I guess I was working from a less than stellar example. On Thursday, May 29, 2014 9:53:14 AM UTC-4, jcbollinger wrote: > > > > On Wednesday, May 28, 2014 9:16:47 AM UTC-5, smalderma wrote: >> >> Hi, >> >> I'm working on custom fact that uses Facter::Util::Resolutio

[Puppet Users] Re: Custom Fact Help? Works in ruby, but not facter...

2014-05-29 Thread jcbollinger
On Wednesday, May 28, 2014 9:16:47 AM UTC-5, smalderma wrote: > > Hi, > > I'm working on custom fact that uses Facter::Util::Resolution.exec to run > a command that returns output I want to parse with regex. If I write up a > ruby shell script like: > > #!/usr/bin/ruby > > out = `` > out = out

[Puppet Users] Re: custom fact help

2008-09-12 Thread Kenton Brede
Follow up on this: My code was fine. Somehow the "level" variable I was using got stuck on "normal." That is, when I ran "puppetd -t." Even if I removed "level = normal" from the manifest, just leaving "level = confidential," "normal" was returned. When puppetd ran as a daemon, the correct vari

[Puppet Users] Re: custom fact help

2008-09-11 Thread Mike Renfro
I worked up http://reductivelabs.com/trac/puppet/wiki/Recipes/HostgroupFact to do a similar task. It may be useful to you. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research 931 372-3601 / Tennessee Technological University -Original Message- From: Kenton Brede <[EMAIL PR