VoxBot
03/09/2023, 7:26 PMVoxBot
03/09/2023, 7:26 PMAlex Fisher
03/09/2023, 7:27 PMparsejson from stdlib instead. Better to know at compile time than apply time.VoxBot
03/09/2023, 7:27 PMVoxBot
03/09/2023, 7:28 PMvoxel
03/09/2023, 7:28 PMAlex Fisher
03/09/2023, 7:29 PMunless $input.parsejson(undef) { fail('custom error message') }Alex Fisher
03/09/2023, 7:31 PMvoxel
03/09/2023, 9:26 PMvoxel
03/09/2023, 9:26 PMvoxel
03/09/2023, 9:30 PMSlackbot
03/09/2023, 10:52 PMSlackbot
03/10/2023, 8:58 AMRobert Waffen
03/10/2023, 8:58 AMVoxBot
03/10/2023, 12:47 PMYury Bushmelev
03/10/2023, 1:47 PMVoxBot
03/10/2023, 1:48 PMVoxBot
03/10/2023, 1:51 PMSlackbot
03/10/2023, 3:58 PMVoxBot
03/10/2023, 4:15 PMbastelfreak
03/10/2023, 4:21 PMbastelfreak
03/10/2023, 4:21 PMcanihavethisone
03/12/2023, 2:40 AMpuppet generate types on the server first, after installing the module. The error I get is:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Virtual Query, Could not autoload puppet/type/network_config: Could not autoload puppet/provider/network_config/interfaces: no such file to load -- puppetx/filemapper (file: /etc/puppetlabs/code/environments/production/modules/network/manifests/init.pp, line: 79, column: 28)
It usually take 3 or so runs on the agents to come good.
2 questions:
• can I fix this at my end or should this be reported as a bug (though there are a lot of issues on the github page, perhaps the module is becoming abandonware??) I can't imagine I am the only person experiencing this issue....
• what does puppet generate types actually do, and why does it fix the issue? Reading https://www.puppet.com/docs/puppet/7/man/generate.html doesn't really help me understand as it just says Generates definitions for custom resource types using Puppet codeDr Bunsen Honeydew
03/12/2023, 2:40 AMpuppet-network module at https://forge.puppet.com/puppet/network?src=slack&channel=voxpupulicanihavethisone
03/12/2023, 2:41 AMpuppet generate types on the server first, after installing the module. The error I get is:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Virtual Query, Could not autoload puppet/type/network_config: Could not autoload puppet/provider/network_config/interfaces: no such file to load -- puppetx/filemapper (file: /etc/puppetlabs/code/environments/production/modules/network/manifests/init.pp, line: 79, column: 28)
It usually take 3 or so runs on the agents to come good.
2 questions:
• can I fix this at my end or should this be reported as a bug (though there are a lot of issues on the github page, perhaps the module is becoming abandonware??) I can't imagine I am the only person experiencing this issue....
• what does puppet generate types actually do, and why does it fix the issue? Reading https://www.puppet.com/docs/puppet/7/man/generate.html doesn't really help me understand as it just says Generates definitions for custom resource types using Puppet codebastelfreak
03/12/2023, 2:46 AMbastelfreak
03/12/2023, 2:51 AMgenerate types generates a kind of class headerbastelfreak
03/12/2023, 2:51 AMcanihavethisone
03/12/2023, 2:55 AMpuppet generate types command in my deploy script
• I do have the puppet/filemapper module installed, and the issue self-corrects after a few runs, so it seems like a resource actualising/timing thing? I have confirmed this behaviour in different settings
• Thanks for adding info for what generate types does, but I'm still unclear on why it solves the problem and allows successful runs from the first timecanihavethisone
03/12/2023, 2:56 AMpuppet generate type command in my deploy script
• I do have the puppet/filemapper module installed, and the issue self-corrects after a few runs, wo it seems like a resource actualising/timing thing?
• Thanks for adding info for what generate types does, but I'm still unclear on why it solves the problem and allows successful runs from the first time