Control repo validation #1021
Replies: 9 comments
-
Thanks @patrickmayes ! We've actually been scoping this feature recently and hope to be posting an RFC for it in the near future, which we'll make sure to link back here. |
Beta Was this translation helpful? Give feedback.
-
Can I get a status update on this? |
Beta Was this translation helpful? Give feedback.
-
There is a new ra10ke validate function for validating Puppetfiles. |
Beta Was this translation helpful? Give feedback.
-
So if I'm understanding this correctly, I would need to setup rake with ra10ke to validate the puppetfile for rake, I would have to setup rspec to test the modules under site for roles and profiles and the site.pp. Then come up with a hiera data validator to test all my hiera data? Would be nice if PDK has all of this functionality in it so I could call a command to validate the control repo and it does it rather than setting up 3-4 different items and come up with the scripting myself. |
Beta Was this translation helpful? Give feedback.
-
+1 to this as these same features would be useful in a monorepo setup where all your modules are under I think another way to look at this problem is to think of it as giving PDK a "global" config or common scaffolding to use for all subdirectories. If those subdirectories happen to be modules, PDK would use the global config unless overridden by some module-specific PDK configs. Edit: Another example of why I am very much for this proposal. For those groups I work with that do have monorepo type of Control Repos, there are dozens of modules that we've converted to PDK and all of them have the exact same boilerplate in them. This is a massively inefficient way to do this. The same Gemfile, same Rakefile, same PDK template version, same dotfiles, etc... The only thing different per module is the tests in the I'd very much like to see the ability to use a single set of PDK boilerplate for a control repo and have each module have its own tests. And this issue, to me anyway, kind of touches on those same points. |
Beta Was this translation helpful? Give feedback.
-
@glennsarti & @jpogran ^^ |
Beta Was this translation helpful? Give feedback.
-
Hrmm
Also setting an rspec root ( Definitely multiplies the combinations of "where is a module?" e.g. Module detection would start to look like;
Do we finally need to have a .pdk.yml (or whatever filename) to keep pdk settings AND be used as a place to detect workspace roots? That said ... My PDK Template V2 RFC may cover some of this e.g. opt-ing out Gemfile and other bits-and-bobs which you don't want |
Beta Was this translation helpful? Give feedback.
-
@glennsarti @jpogran #980 has a better example of what I'd want the PDK to do. Being able to descend into sub-dirs to find modules is a stretch, yes, but at least being able to run |
Beta Was this translation helpful? Give feedback.
-
I would still very much like to see this happen. |
Beta Was this translation helpful? Give feedback.
-
Requesting to pdk to be able to validate Puppetfile, manifests/site.pp, and modules under the site folder for roles/profiles checking as well as hieradata yaml files.
Beta Was this translation helpful? Give feedback.
All reactions