Hi All,

I'm generating custom facts and want to exclude few software's in black 
list. 

Ex: 7-Zip is a software causing a problem as its name starts with digit and 
not a letter. The name also has some spaces, hiphens.

file { "c:/marionette-collective/etc/facts.yaml":
    loglevel => debug,
    content  => inline_template("<%= scope.to_hash.reject { |k,v| k.to_s =~ 
/(uptime_seconds|timestamp|free)/}.to_yaml %>"), # exclude rapidly changing 
facts
  }


I'm trying something like below , am no ruby expert and can't figure out 
the right way.

file { "c:/marionette-collective/etc/facts.yaml":
    loglevel => debug,
    content  => inline_template("<%= scope.to_hash.reject { |k,v| k.to_s =~ 
/(uptime_seconds|timestamp|free|'7-zip 5.6 (x64 version)')/}.to_yaml %>"), 
# exclude rapidly changing facts
  }


can some please help me. Becuase of this entire facts are not loading and 
puppet agent -t is failing. A big show stopper this is. 


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/42746afc-ad14-40ab-a7c5-70846302be00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to