CFEngine Help: Re: bundles with the same name

2012-05-14 Thread no-reply
Forum: CFEngine Help Subject: Re: bundles with the same name Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,25854,25927#msg-25927 I thought I got some kind of error when I was using something like an agent and executor bundle, both with the same name (I wanted to use the

Re: bundles with the same name

2012-05-11 Thread Nick Anderson
On 05/11/2012 09:39 AM, Gregory Matthews wrote: > except when you need a caffeine boost and you say "Mike, get me a coffee" > > I don't care which Mike brings my coffee ;) Something like commands: mike:: "/usr/bin/wget coffee" action => "immediate";

Re: bundles with the same name

2012-05-11 Thread Gregory Matthews
On 11/05/12 15:14, Aleksey Tsalolikhin wrote: > Is it ever confusing to have two people with the same name? Or two > anything with the > same name? :) Same thing with bundles... except when you need a caffeine boost and you say "Mike, get me a coffee" I don't care which Mike brings my coffee

Re: bundles with the same name

2012-05-11 Thread Aleksey Tsalolikhin
On Wed, May 9, 2012 at 6:19 AM, Gregory Matthews wrote: > Is it bad practice to have bundles with the same name? Most definitely. I have had students that have tried it and been confused by the results. Is it ever confusing to have two people with the same name? Or two anything with the s

Re: bundles with the same name

2012-05-10 Thread Gregory Matthews
On 09/05/12 15:26, Nick Anderson wrote: > I think you could end up getting some unexpected results if you do that. > > If you are referencing a fully qualified variable which one will you get? > > My tests show it will vary based on what was defined first. Things could > get really confusing. It al

Re: bundles with the same name

2012-05-09 Thread Nick Anderson
On 05/09/2012 08:19 AM, Gregory Matthews wrote: > Is it bad practice to have bundles with the same name? e.g. > > bundle common g { > ... > } > > bundle agent g { > ... > } > > it provides some convenience for us and appears to work but am I storing > up troubl

CFEngine Help: Re: bundles with the same name

2012-05-09 Thread no-reply
Forum: CFEngine Help Subject: Re: bundles with the same name Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,25854,25855#msg-25855 Hi Greg, I don't think this is a good practice, because bundles of type common can also be included in the bundlesequence. In my testin

bundles with the same name

2012-05-09 Thread Gregory Matthews
Is it bad practice to have bundles with the same name? e.g. bundle common g { ... } bundle agent g { ... } it provides some convenience for us and appears to work but am I storing up trouble for myself? GREG -- Greg Matthews01235 778658 Scientific Computing Group Leader Diamond