i installed the [puppetlabs-lvm][1] module which provides some custom facts like `lvm_pv_0`
having the `warning($facts['lvm_pv_0'])` in my `site.pp` correctly outputs `/dev/md0` but running`facter | grep lvm` or `puppet facts | grep lvm` from command line does not return anything.
i have not checked them all but it looks like that every custom fact is missing from the command line.
how to access the custom facts from the command line?
**update**:
- just for info:
- puppet version: 4.8.1
- os: debian 8 jessie
- tested on: vagrant+virtualbox & bare metal
i run the commands as root, i already tried `facter -p` / `facter --puppet`. maybe my wording is wrong, not sure if `custom facts` are the same as `"custom" facts from modules`
in my example of the [puppetlabs-lvm][1] module, the facts are located in `modules/lvm/lib/facter/lvm_support.rb
the facts are loaded and correctly accessible on a puppetrun in vagrant or when connected on a puppetmaster. only on the commandline the facts are missing.
the ommand `puppet config print factpath` has the following output for me `/opt/puppetlabs/puppet/cache/lib/facter:/opt/puppetlabs/puppet/cache/facts` both directories are empty. the directories given in a answer below`/var/lib/puppet/lib/facter:/var/lib/puppet/facts` does not exist.
extra question: where should custom facts be stored on a node?
[1]: https://forge.puppet.com/puppetlabs/lvm
↧