-
Notifications
You must be signed in to change notification settings - Fork 10
custom_facts
Dan Iverson edited this page Mar 12, 2018
·
2 revisions
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.
Under the C:\ProgramData\puppetlabs\facter\facts.d\ folder, we can put YAML file with custom values.
---
ps_role: provider
region: dev
app: hrYou can save the file as facts.yaml.
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}":