[Puppet Users] Duplicate declaration error - what's the correct approach to avoid this?

2017-11-23 Thread buoyant_puppy
Why does this: class mymodule { notify { "booboo": } notify { "booboo": } provoke the error: Error while evaluating a Resource Statement, Duplicate declaration: Notify[booboo] is already declared in file That's is a simplified version of my actual use case: $mythings.each |

Re: [Puppet Users] Duplicate declaration error - what's the correct approach to avoid this?

2017-11-23 Thread Dirk Heinrichs
Am 23.11.2017 um 15:47 schrieb buoyant_puppy: > That's is a simplified version of my actual use case: >   $mythings.each | String $x | {    # for each x in list 'mythings' >     notify { "gonna do something with $x": } >   Not sure, but I think you need to use ${x} in the resource declara

[Puppet Users] IF Distro Check: Ubuntu 16 or 17

2017-11-23 Thread mattfe78
Hi, i want to check (puppet facts / facter: is there a difference?) which version is installed on the machine (we use Ubuntu 16 for older and Ubuntu 17 for newer laptops, they have different WLAN Modules) . Can you please support me with the correct "Mayor-Distro-Check" ? It doesnt work like t

[Puppet Users] Re: Duplicate declaration error - what's the correct approach to avoid this?

2017-11-23 Thread Peter Faller
On Thursday, 23 November 2017 16:47:44 UTC+2, buoyant_puppy wrote: > > Why does this: > class mymodule { > notify { "booboo": } > notify { "booboo": } > > provoke the error: > Error while evaluating a Resource Statement, Duplicate declaration: > Notify[booboo] is already declared i