March 2017
Beginner to intermediate
925 pages
18h 11m
English
The Creating custom facts recipe describes how to add extra facts written in Ruby. You can also create facts from simple text files or scripts with external facts instead.
External facts live in the /etc/facter/facts.d directory and have a simple key=value format like this:
message="Hello, world"
Here's what you need to do to prepare your system to add external facts:
facterversion or use facter -v:[root@cookbook ~]# facter facterversion 2.3.0 [root@cookbook ~]# facter -v 2.3.0
[root@cookbook ~]# mkdir -p /etc/facter/facts.d
Read now
Unlock full access