Am 24.11.2017 um 10:14 schrieb buoyant_puppy:
> Code:
> $dns[resolvers].each | String $resolver | {
> file_line { 'adding ns $resolver': path => '/etc/resolv.conf',
> line => 'nameserver $resolver', }
> notify { "just added $resolver to /etc/resolv.conf": }
> }
There are a few errors
On Thursday, November 23, 2017 at 5:20:54 PM UTC+1, Peter Faller wrote:
>
>
> The error occurs because you have two resources of the same type (notify)
> with the same name ('booboo'). Remember that 'notify' is not like a '
> log.info' - it is a resource in it's own right, and each 'notify' has
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