adding ghostbuster setup documentation#665
Conversation
|
@advorkin thanks for the PR! Could you please sign the commit with an ssh or gpg key? |
| @@ -0,0 +1,158 @@ | |||
| # puppet-ghostbuster | |||
There was a problem hiding this comment.
please have a look at our existing posts, they all have a specific header encapsulated in three dashes: https://github.com/voxpupuli/voxpupuli.github.io/blob/master/_posts/2026-04-16-openvox-releases-at-speed-of-light.md?plain=1
That's required for the blog software to render to post correctly.
| ## Installation | ||
|
|
||
| gem install puppet-lint | ||
| gem install puppet-ghostbuster |
There was a problem hiding this comment.
It's enough to install puppet-gostbuster. It has a dependency to puppet-lint, so you don't have to install it explicitly.
m0dular
left a comment
There was a problem hiding this comment.
This script is clearly an AI generated plagiarism of puppet-ghostbuster. If there are issues with the module, we should fix them in the module itself instead of AI generating a new script.
| Dir.glob('./manifests/**/*.pp') | ||
|
|
||
| files.each do |file| | ||
| next unless file.match(%r{^\./(:?[^/]+/){2}?manifests/.+$}) |
There was a problem hiding this comment.
All of these blocks are just copy/pastes of the code from puppet-ghostbuster. This .match is from here https://github.com/voxpupuli/puppet-ghostbuster/blob/19b8acf7a0877c576f062ffc722bbc735822d3e5/lib/puppet-lint/plugins/check_ghostbuster_classes.rb#L19
return if path.match(%r{^\./(:?[^/]+/){2}?manifests/.+$}).nil?
| PuppetLint::Data.manifest_lines = content.split("\n", -1) | ||
| PuppetLint::Data.tokens = PuppetLint::Lexer.new.tokenise(content) | ||
|
|
||
| PuppetLint::Data.send(:class_indexes).each do |idx| |
There was a problem hiding this comment.
No description provided.