Skip to content

custom_facts

Dan Iverson edited this page Mar 12, 2018 · 2 revisions

Custom Facts

You can easily deploy custom facts to your server for use with the DPK and Puppet. Facter has a number of built-in facts, like ::hostname, but we can use our own.

facts.d

Under the C:\ProgramData\puppetlabs\facter\facts.d\ folder, we can put YAML file with custom values.

---
ps_role:    provider
region:     dev
app:        hr

You can save the file as facts.yaml.

Hiera and Custom Facts

In your psft_customizations.yaml file, you can reference these facts. For example, if you wanted your PIA domains to include the region in the name, the YAML would look like this:

pia_domain_list:
  "peoplesoft-%{::region}":

Clone this wiki locally