Have you tried this?

class cls($arg="default"){notify{$arg:}}

node foo
{
        Class <| name=='cls'|> {arg => "override"}
        class{'cls':}
}
El 17/10/2014 19:29, "Vladimir Brik" <[email protected]>
escribió:

> Hello,
>
> Is it possible to override parameters of a class using a collector?
> (similarly to https://docs.puppetlabs.com/puppet/latest/reference/lang_
> resources.html#amending-attributes-with-a-collector)
>
> The following gives "Resource type cls doesn't exist" error:
>
> class cls($arg="default"){notify{$arg:}}
>
> node foo
> {
>         Cls <| |> {arg => "override"}
>         class{'cls':}
> }
>
> It works if I change "class" to "define" though.
>
>
> Thanks,
>
>
> Vlad
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/puppet-users/544151EF.7080709%40icecube.wisc.edu.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF_B3dfZMfrra48cW-OQ86SLjVx07f5sYuV-uOBt%2B0g08vRC9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to