[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

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

2017-11-24 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