packer-provisioner-inspec icon indicating copy to clipboard operation
packer-provisioner-inspec copied to clipboard

Fully support Inspec attributes files.

Open fatmcgav opened this issue 6 years ago • 4 comments

Change Attrs to be a string. Add validation for filepath. Pass through to Inspec CLI if set. Add test coverage.

fatmcgav avatar Nov 06 '18 20:11 fatmcgav

This looks good, but why the switch to a single string for attrs when inspec supports passing multiple attributes files at a time?

jrbeilke avatar Nov 07 '18 15:11 jrbeilke

@jrbeilke Good question, and yeh, looks like it will support multiple files with a single flag: https://github.com/inspec/inspec/blob/6f8c0245c8b980fde477948c97d3e95e095ada82/lib/inspec/base_cli.rb#L104-L105

I'll re-work to loop over attrs...

fatmcgav avatar Nov 07 '18 15:11 fatmcgav

@jrbeilke Updated in b27552a :)

fatmcgav avatar Nov 07 '18 17:11 fatmcgav

Hey @jrbeilke - any chance of getting this one merged and released? :)

fatmcgav avatar Nov 09 '18 10:11 fatmcgav