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