Facter - Read multiline output from linux command

asked 2018-02-25 13:32:32 -0500

DeathWingMT gravatar image

Dear All,

I am very new to puppet and facter and I am trying to create a custom fact, is it possible to store the entire output of a command (example cat /etc/fstab) in a fact?

Can someone provide an example since my attempts only tore the first line of output.

edit retag flag offensive close merge delete

Comments

Could you update your question with what you have tried? I haven't had any trouble getting multiline output from custom facts running local commands on the boxes by following the regular documentation: https://puppet.com/docs/facter/3.9/fact_overview.html

DarylW gravatar imageDarylW ( 2018-02-26 12:53:53 -0500 )edit