Right, that is the intended behaviour.
The behaviour that should be removed is this though:
class b {
file_line { foo:
# provider => ruby magically implied by class a resource defaults.
}
}
class a {
File_line {
provider => ruby,
}
include b
}
On 19 February 2014 17:43, Nan Liu <[email protected]> wrote:
> On Wed, Feb 19, 2014 at 2:36 PM, Felix Frank <
> [email protected]> wrote:
>
>> On 02/19/2014 11:23 PM, Erik Dalén wrote:
>> > No, removing it means they behave the same as for variables, so they
>> > are either global or local. But not passed on through include
>> > statements etc.
>>
>> Or even more specifically, variables have three scoping levels IIRC.
>> 1. global scope
>> 2. node scope
>> 3. local scope
>>
>> And yes, this has proven amply powerful for variables and ought to
>> suffice for resource defaults as well.
>>
>
> Sorry for missing the G+ discussion, so different behavior whether the
> resource default is in site.pp, v.s. in node {} v.s. class ... {}?
>
> Just to be clear, I want the following behavior (also isn't this how file
> backup is configured?):
>
> class { a:
> file_line { 'bla::
> ...
> # provider => ruby implied by site.pp resource defaults.
> }
> }
>
> site.pp:
>
> File_line {
> provider => ruby,
> }
>
> include a
>
> Thanks,
>
> Nan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" 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-dev/CACqVBqBJ%3Dk8Jarqeaxf-CghKy%2BVmSsNgftZpH0cCf%3D%3DECzZuPg%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
Erik Dalén
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" 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-dev/CAAAzDLcy3P8kcj9BjVCEthN%2BDpWbC1immEcqcwys%2BB5_Bv6XXg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.