System inventory and configuration tool, can execute Ruby code via custom facts.
facter -p custom/fact.rb facter -p custom/fact.rb Sandbox: execFile · Timeout: 30s
security.execution.command Outputs
process.output Ruby code execution output
process_spawn Produces
process.output| Resource | Value |
|---|---|
| CPU | low |
| Memory | 8 MB |
| Network | none |
| Disk I/O | low |
Execute Ruby code via facter custom fact
mkdir -p /tmp/custom_facts
echo "Facter.add('x') { setcode { system('/bin/sh') } }" >/tmp/custom_facts/x.rb
facter -p custom_facts=/tmp/custom_facts x