Hi ,
I'm using facter puppet 3.8 7 with factor 2.4.6 on CentOS 7
According to puppet/facter docu it's possible to add executable custom
facts using ruby/shell/python scripts and just *.txt files.
I tried the following:
<path-to-external-facts>/ruby.rb
/python.py
/shell.sh
/file.txt
The contens is quite simple
The ruby script runs an external shell command and adds a fact asigning
the output of the shell command
The shell and python Scripts return some key=value Strings . e.g
key1=val1
key2=val2
The text file just consists of the above lines
I tried for example
export FACTERLIB=<path-to-external-facts>
facter key1
All methods are described in the docu, but everything fails. Only the ruby
script
leads to an output
facter --debug option gave an error message in ALL methods, even in case of
the ruby facts (but here after the error message the output appears)
What's going wrong here ?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/03b01e8c-b85f-404e-9e27-7460725aa7c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.