Re: [Puppet Users] Duplicate declaration error

2018-06-08 Thread Priyo Phan
I think it is due to the Apache class being called inside your defined type, it is being called more than once when you try to create more than 1 vhost. On Fri, Jun 8, 2018, 15:40 Clemens Bergmann wrote: > Hi There, > > I have a "can not redeclare" error that I do not understand. > > I try to wr

[Puppet Users] Duplicate declaration error

2018-06-08 Thread Clemens Bergmann
Hi There, I have a "can not redeclare" error that I do not understand. I try to write my own apache::vhost defined type with sane defaults for my environment. The general class layout is as follows: class vhost::vhost1 { custom::apache::vhost{ #parameters } } class vhost::vhost2 { custom:

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

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] 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 |