rnelson0 / puppet-generate-puppetfile

Generate or update a Puppetfile for use with r10k or librarian-puppet. Optionally, create a fixtures file for rspec-puppet.
92 stars 22 forks source link

Add --fixtures-only option to generate fixtures without performing updates #53

Closed rnelson0 closed 7 years ago

rnelson0 commented 7 years ago

Fixes #37

rnelson0 commented 7 years ago

@alexjfisher Let me know if this patch satisfies your need.

alexjfisher commented 7 years ago

The versions of the forge modules in the source Puppetfile don't make it to the .fixtures file generated. Being able to test against the latest versions is nice, but I want to test roles against the exact contents of my Puppetfile. Modules from git are ignored completely. I was looking for a tool that allows me to 'sync' my .fixtures from a Puppetfile. Maybe a better solution would be if Puppetlabs spec helper could just work with Puppetfiles instead?

rnelson0 commented 7 years ago

@alexjfisher I've taken care of spacing issues between the module name and the version number. I don't have any really complex Puppetfiles to test with, but please confirm this works for you before I rebase/merge. Thanks!

alexjfisher commented 7 years ago

That looks much better for forge modules. What was the verdict with regards modules from git?

rnelson0 commented 7 years ago

Currently, no support. Tim is going to put in a request to support fixtures from git. I do not know when I will be able to get to it, definitely welcoming of PRs for that.