Ask Your Question
0

csv header support

asked 2015-12-21 17:54:24 -0500

bess gravatar image

Hello,

I'm writing a Puppet module that will read data fields from a CSV file via the extlookup fuction (using Puppet 3.6.2) and I have a request to write and CSV file using the first line as the header.

Does extlookup support this? How do I pass that along to extlookup?

I understand extlookup is deprecated in Puppet 4.x and Heira is a better solution but I have to use CSV files.

-Brandon

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-01-03 03:33:27 -0500

updated 2016-01-03 03:34:16 -0500

The requirement to have your data in CSV format seems rather arbitrary, and if it were me, I would be questioning that one strongly. However, rather than extlookup, have you considered instead writing a custom Hiera backend that will read from your CSV files? See here for instance.

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

Stats

Asked: 2015-12-21 17:54:24 -0500

Seen: 135 times

Last updated: Jan 03 '16