Re: [Puppet Users] [PuppetDB] Error 500 'Failed to execute '/pdb/cmd/v1....'

2022-10-31 Thread Nir Fishler
Hey Martin, Thanks for your reply. There are three files underneath that directory: - puppetdb-access.log - puppetdb.log - puppetdb-status.log but all seem to be empty - 0kb what does that mean? On Monday, October 10, 2022 at 11:03:05 AM UTC+3 Martin Alfke wrote: > Hi Nir, > > Pl

Re: [Puppet Users] [PuppetDB] Error 500 'Failed to execute '/pdb/cmd/v1....'

2022-10-31 Thread Martin Alfke
How did you configure puppetdb and puppetserver? On Open Source we usually recommend the puppetlabs-puppetdb module. > On 31. Oct 2022, at 10:39, Nir Fishler wrote: > > Hey Martin, > > Thanks for your reply. > > There are three files underneath that directory: > puppetdb-access.log > puppetd

[Puppet Users] Resource default values from site.pp not applied

2022-10-31 Thread 'Dirk Heinrichs' via Puppet Users
Hi, I'm currently stuck with a problem where resource defaults from site.pp are not applied, for example: if $facts['custom'] == 'some value' { Some_resource { attribute => lookup('some.key'), } notify { lookup('some.key'): } notify { $facts['custom']: } } The two notifications appea

Re: [Puppet Users] Resource default values from site.pp not applied

2022-10-31 Thread Martin Alfke
Hi Dirk, Is attribute the correct parameter of some_resource type? You mention that notify returns the desired results, therefore I assume that hiera returns a proper value for ’some.key’. Which means that the if facts clause is also working as expected. Are you overwriting the Some_resource def

Re: [Puppet Users] Resource default values from site.pp not applied

2022-10-31 Thread 'Dirk Heinrichs' via Puppet Users
Am Montag, dem 31.10.2022 um 15:10 +0100 schrieb Martin Alfke: Is attribute the correct parameter of some_resource type? Yes. You mention that notify returns the desired results, therefore I assume that hiera returns a proper value for ’some.key’. Which means that the if facts clause is also wo

Re: [Puppet Users] Resource default values from site.pp not applied

2022-10-31 Thread Martin Alfke
Next guess: How do you declare some_resource type? Are you using standard type declaration: some_reosurce { ’title’: param => ‘value, … } Or do you use ensure_resource or create_resource function? > On 31. Oct 2022, at 15:19, 'Dirk Heinrichs' via Puppet Users > wrote: > > Am Montag, dem

Re: [Puppet Users] Resource default values from site.pp not applied

2022-10-31 Thread 'Dirk Heinrichs' via Puppet Users
Am Montag, dem 31.10.2022 um 15:29 +0100 schrieb Martin Alfke: How do you declare some_resource type? Are you using standard type declaration: some_reosurce { ’title’: param => ‘value, … } Yes, like this. Or do you use ensure_resource or create_resource function? No, I don't use any of the

Re: [Puppet Users] Hiera 5 and Deferred / Sensitive

2022-10-31 Thread Aaron Russo
So I managed to get this to work by changing hiera data slightly, replacing the `lookup` function with `alias` so that the type wasn't automatically converted to a string. ``` # this works! note the weird quoting is to avoid hiera treating fqdn dots as sub-keys and is intentional. profile::gitlab_

Re: [Puppet Users] Resource default values from site.pp not applied

2022-10-31 Thread Robin Lee Powell
I don't think we're going to be able to help further without a fully-working minimal example. On Mon, Oct 31, 2022 at 02:32:21PM +, 'Dirk Heinrichs' via Puppet Users wrote: > Am Montag, dem 31.10.2022 um 15:29 +0100 schrieb Martin Alfke: > > How do you declare some_resource type? > Are you u

Re: [Puppet Users] Hiera 5 and Deferred / Sensitive

2022-10-31 Thread Aaron Russo
Closing the loop on this for anyone else trying this in the future. The custom backend was correct the entire time and was returning the Deferred function. However since I was defining a key prefix that wasn't actually used in Hiera for the custom backend to key off of, I was making use of the