Re: [Puppet Users] Custom functions what way forward

2022-03-24 Thread Martin Alfke
Hi Baz, There are two APIs for custom types/providers within modern Puppet. The “old” API uses the Puppet::Type.newtype syntax. I gave a talk on this topic a couple of years ago: https://www.slideshare.net/PuppetLabs/puppetconf-2016-moving-from-exec-to-types-and-providers-martin-alfke-example42-g

[Puppet Users] Custom functions what way forward

2022-03-24 Thread barry haycock
I am migrating a Puppet 3.x to Puppet 7.x and am having to rewrite alot of the code. This includes a number of custom modules and my first foray into writing custom functions/providers. This is where I am getting stuck as there is not really a lot of information on this. Looking at existing Pup