Suggested Workflow: Templates in Forge Modules #78
Replies: 3 comments 1 reply
-
I don't know how frequently this need will come up, but the I can similarly envision a library module for python, docker, or even templates for stdlib - any Puppet module which introduces a library of helpers to be consumed by other modules. |
Beta Was this translation helpful? Give feedback.
-
At the moment user config is restricted to Taking that concept, the current thought is that pct would look in the directory it is being run from, say I believe that would provide the flexibility without having to think in terms of modules. It could also allow for the shipping of a configuration file with predefined overrides. |
Beta Was this translation helpful? Give feedback.
-
The I am not sure about the 'storing the template in a puppet module' type distribution. We are working to make the templates installable from the forge, so that is where I would expect to find your template. However I could see the case of keeping the template inside your module to keep the points of change together. |
Beta Was this translation helpful? Give feedback.
-
I've put up an experimental item template for adding a new Resource API type and provider which depends on the PowerShell Manager from the
ruby-pwsh
/puppetlabs-pwshlib
gem/module.It will likely soon include an experimental project template for the minimum scaffolding for a Puppet module which has the necessary gems and fixtures.
A workflow that I would like to explore is having the PDK find templates in an expected location of my installed modules (in my experiment,
module_name/pdk/templates
) without having to specify--templatepath
on each use.So if that experiment was merged, I would like the following workflow to "just work"
Right now, I need to specify
--templatepath
to thepdk/templates
folder inside of whereverpuppetlabs-pwshlib
was installed.Beta Was this translation helpful? Give feedback.
All reactions