Ask Your Question

testing facter code for the first time

asked 2017-12-11 12:31:43 -0600

athlonxl gravatar image

Still pretty new to puppet and im trying to test out a script I have for a new facter i created. Problem is i have never tested ruby code for puppet before so i don't know how to begin. I have the script design that i believe should work but no knowledge on how to test to see if it gives me results. testing it on my local machine for now which has puppet agent installed for windows. Any help that be given would be much appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-12-14 10:37:54 -0600

zsl gravatar image
  1. copy your facter file (*.rb) to the factpath of your system.

    You can get your factpath with puppet config print factpath

  2. Edit your code and test it with facter -p your-fact-name

For more information, refer to the official docs :

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-12-11 12:31:43 -0600

Seen: 175 times

Last updated: Dec 14 '17