-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow validation of control repos #289
Comments
Control-repo workflows are currently not implemented. A trivial extension would be |
Do you plan to allow a simple way of just calling |
FYI, on https://github.com/example42/psick we manage to run current pdk on the whole control repo, we have add to adda local metadata.json, (and there's also a control-repo level rspec tests layout) |
I agree that it needs to be possible to run |
That's not a deliberate restriction. I've created https://tickets.puppetlabs.com/browse/PDK-544 for removing the |
OK, so upon further effort, and based on the note from @alvagante above, I created a bogus control_repo module with |
@TJM Thanks for the hint! Most of the magic for getting this running seems to be in the In any case, there should better be a |
Closing this issue in favor of #333. |
The tools included with pdk (
puppet-lint
,rubocop
, etc. as listed in the table on top of the README) are obviously meant to be run viapdk
.Their executables are all located in
/opt/puppetlabs/pdk/share/cache/ruby/2.1.0/bin/
, not in/opt/puppetlabs/bin/
, which does not make them accessible by default from the command line.There are two shortcomings to this:
puppet-lint
and other commands directly. The only sane way (from a sysadmin point of view) to fix this is by installing (the Debian package)puppet-lint
. This may, however, install a different version of the linter, potentially leading to different validation results.puppet-lint
normally also validates a control repository, not only a module. We simply runpuppet-lint .
in the repository root, usually. Now,pdk validate
does not like this idea as you can see below.A solution to 1.) would be to make
puppet-lint
directly accessible by placing it in/opt/puppetlabs/bin/
(or so).As for 2.) I'm not sure how you guys want us to validate control repositories using the
pdk
command. I would like to for sure.The text was updated successfully, but these errors were encountered: