Closed jay7x closed 1 month ago
Hi there,
Thank you for your issue. We pushed a new version and updated our namespace to match best practices: https://forge.puppet.com/modules/linuxpatch/agent
Warm Regards,
@hzba1 Ah, nice! Though I'd still suggest to adopt PDK to check for style issues. Also your README is a bit de-synced now around installation part. You can drop the installation part as it's generated by Forge automatically. Just keep the usage block.
Hi @jay7x, thanks for tips! We pushed a commit to fix our README :+1:
Hello from Puppet community! :)
Just found your module while googling for Dell DRM (you have an article about its vulnerability on your site). It looks like you have hard times learning how to create a Puppet module :)
I'd suggest to do these steps to make your module following all the best practices of the Puppet world :)
metadata.json
has the PDK template reference, but you removed everything else it seems.pdk new module linuxpatch linuxpatch-puppet
. This will create a Puppet modulelinuxpatch
in the directorylinuxpatch-puppet
(it shouldn't exists, pdk will create it for you). Here you should answer few questions:metadata.json
, your name islinuxpatch
, which is fineY
(press Enter actually) and PDK will generate the module structure for you. There is a bunch of files. It might be hard to understand what every file is for, but I'd suggest leave it as it is for now.linuxpatch.pp
tomanifests/init.pp
(this is where Puppet will look for a class of the module name)pdk validate
. See the style and documentation issues :-D. Runpdk validate -a
to autocorrect the indentation.manifests/init.pp
file (quick-fixing documentation issues, see this for details):pdk validate
again. Enjoy having no issues.pdk release prep
. Here is another bunch of questions:pdk validate
might complain otherwise.pdk build
. This will generate a gzipped tarball archive, which you can upload manually to the Puppet Forge. This step might be automated withpdk release publish
and Forge token later.There is another way to use Voxpupuli community tooling and release workflow for the module (with commercial support option available)
Feel free to ask questions if any!