[rudder-dev] new autofs techniques

Michael Gliwinski Michael.Gliwinski at henderson-group.com
Tue Mar 26 13:10:44 CET 2013


On Tuesday 26 Mar 2013 12:07:41 Nicolas Charles wrote:
> On 26/03/2013 10:54, Michael Gliwinski wrote:
> > I read the comments on github, I must admit, I'm not really sure what
> > TRACKINGVARIABLE and TRACKINGKEY are.  However that does remind me that
> 
> They are the most complex part of the technique writing. When the
> promises are generated, Rudder "aggregates" together all the variables
> of all the directives based on the same Techniques; and it flattens all
> variables in multi-values sections.
> So we need to keep a track of which variable value comes from with
> Directives, and there come the TRACKINGVARIABLE, which have the size of
> another variable if it is multivalued

OK, that makes sense, thanks.  Just one question, what do you mean by "size" 
in this context?  (is it maybe the number of values coming from the same 
particular directive?)

> With a small example issued from checkGenericFileContent, we have the
> TRACKINGVARIABLE with a SAMESIZEAS GENERIC_FILE_CONTENT_PATH
> GENERIC_FILE_CONTENT_PATH is in a mutlivalued sections, meaning we can
> have several for each Directives
> 
> If we have three directives, configured as follow :
> 
> DirectiveA : file 1, file2
> DirectiveB : file 3
> DirectiveC : file 4, file 5, file 6
> 
> GENERIC_FILE_CONTENT_PATH will end up being a list of 6 elements :
> file 1, file2, file 3, file 4, file 5, file 6
> And TRACKINGKEY will also be a list of 6 elements :
> DirectiveA, DirectiveA, DirectiveB, DirectiveC, DirectiveC, DirectiveC
> 
> So that we can iterate over each elements, as well as the reporting, to
> get proper report for each file

Thanks very much for explaining, I understand better now :)


**********************************************************************************************
The information in this email is confidential and may be legally privileged.  It is intended solely for the addressee and access to the email by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail are subject to the terms and conditions expressed  in the governing client engagement leter or contract.
If you have received this email in error please notify support at henderson-group.com

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************



More information about the rudder-dev mailing list