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 defaults in a class? Defaults in a class overwrite defaults from site.pp. Hth, Martin > On 31. Oct 2022, at 14:48, 'Dirk Heinrichs' via Puppet Users > <[email protected]> wrote: > > 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 appear in the report, with expected values, but the > default value for "attribute" of "Some_resource" doesn't get set. Any idea > what I'm doing wrong here? > > Thanks... > > Dirk > -- > Dirk Heinrichs > Senior Systems Engineer, Delivery Pipeline > OpenText ™ Discovery | Recommind > Phone: +49 2226 15966 18 > Email: [email protected] <mailto:[email protected]> > Website: www.recommind.de > <mail://ab5defde1fa49913f64f8482009c4be447b3cf96/Gesendete%20Elemente/www.recommind.de> > Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach > Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, > Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646 > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) please > notify the sender immediately and destroy this e-mail. Any unauthorized > copying, disclosure or distribution of the material in this e-mail is > strictly forbidden > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail > irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte > Weitergabe dieser Mail sind nicht gestattet. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/9c76afa2cb08d2b58be3a4ee461931caab63957f.camel%40opentext.com > > <https://groups.google.com/d/msgid/puppet-users/9c76afa2cb08d2b58be3a4ee461931caab63957f.camel%40opentext.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4C0F9BCC-78C3-4B46-8C7B-A8CE31B818C9%40gmail.com.
