Closed jpogran closed 3 years ago
The current aim is to base a set of templates off what the minimum requirements would be to follow the Beginner's Guide to writing modules. This would require:
puppet-module-base
project:
puppet-module
project templatepdk test unit
pdk build
pdk validate
puppet-class
item:
puppet-class
item templatepdk test unit
A potentially compelling addition would be to:
puppet-module-base
project non-licensed Linux only (i.e. Ubuntu, Debian, CentOS)item
that generates a Github workflow using Litmus to provision and execute acceptance testsAs a potential Puppet module developer, I want to be able to quickly build a module that I can put on the forge and have other collaborators work on it with me
OK, how do I create a basic module...nothing in it, just the base minimum requirements?
pct new puppet-module-base
pct-config
parameters for metadata.json (Windows, Linux support)Cool, OK, I need a class now as a starter
pct new puppet-class
pct-config
parameters for Puppet Classpdk test unit
should work on this, even though there's nothing therepdk test unit
cycle, until completeGood, now I want other people to enhance it but make sure there's tests on their contributions
pct new ghactions-module-spec
pct-config
(TBC)OK, let's go to the next level of testing and do some acceptance testing! I've heard Litmus is quite good for acceptance testing? Do you have a template for that?
How did I create that Github Action Workflow? How can I create my own template items like that, because we have our own CI I'd like to create a template for!
puppet-module-base
Type: project
puppet-class
Type: item
pdk test unit
should work after generation (assuming it has been deployed in to a puppet-module
type template)github-actions-spec-tests
Type: item
Starter templates will be held here: https://github.com/puppetlabs/baker-round/tree/pct-poc-templates
I think this ticket is complete and can be closed.
Evaluate existing set of PCT experimentations to see if any are worthy first example templates. Evaluate whether any new template should be created. End goal is a short list of example templates that showcase using PCT Do not create templates for this ticket