[Puppet Users] Can't knockout value

2022-03-24 Thread Helmut Schneider
Hi, my hiera.yaml: --- version: 5 defaults: datadir: /etc/puppetlabs/code/environments/%{::environment}/hieradata data_hash: yaml_data hierarchy: - name: "Nodes" path: "nodes/%{::fqdn}.yaml" - name: "Domains" globs: - "domains/%{::domain}/*.yaml" - name: "Operatin

[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

Re: [Puppet Users] Can't knockout value

2022-03-24 Thread Tim Skirvin
Helmut Schneider writes: > paths: > - "%{::operatingsystem}-%{::operatingsystemrelease}.yaml" > - "%{::operatingsystem}-%{::virtual}.yaml" > - "%{::operatingsystem}.yaml" > - "%{::kernel}.yaml" > I'm trying to knockout "opennntpd". This works on CentOS in CentOS.yaml:

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