[Puppet Users] Re: Custom Fact Deployment

2023-08-28 Thread Ben Parry
If you write your bash script in Ruby (maybe ask chatgpt to do it) and put it in your class in the folder lib/facter your next puppet run will automatically update the facts and it will be available. Best you read this page; https://www.puppet.com/docs/puppet/6/custom_facts.html On Thursday, 3

[Puppet Users] Call puppet define from Hiera

2023-08-28 Thread Ben Parry
Puppeteers, I am bashing my head against a wall try to call a custom defined resource (I think that's the right terminology) from Heira. I've created a class (appconfig) and within that I have used Puppet PDK to create a define to create an application config file (loadconf). It works perfect

[Puppet Users] puppet error - agent test

2023-08-28 Thread kovid bhardwaj
Hi, I am getting error as attached while trying to run puppet agent test --noop. Could you please help here? [root@pagent log]$ puppet agent --test --noop Info: csr_attributes file loading from /etc/puppetlabs/puppet/csr_attributes.yaml Info: Creating a new SSL certificate request for pagent.a