[rudder-dev] rudder variables

Michael Gliwinski Michael.Gliwinski at henderson-group.com
Mon Apr 8 17:27:40 CEST 2013


On Monday 08 Apr 2013 16:22:25 Nicolas Charles wrote:
> On 08/04/2013 16:14, Michael Gliwinski wrote:
[...]
> > Aha, I knew there must be a way of referencing data from inventory! :D 
> > Cool! Is there a list of names somewhere (I can check the source)?
> 
> For the moment, there is only id, hostname and admin.
> You could check the source as well; it's in
> rudder-core/src/main/scala/com/normation/rudder/services/policies/Parameteri
> zedValueLookupService.scala If you think some values are really important to
> be usable, you can list them, we'll see to add them

Brilliant, next time I need something I'll check it out (IIRC I needed 
something like distro name once, but worked around it somehow).  Thanks!

> > Regarding ${rudder.rule_id.VARIABLE_NAME}, are these internal?  I
> > thought you only define values in directives?
> 
> Yeah, but you define values in directives in Rules
> For instance, let's say that the Rule "Config SSH for Prod" has the id
> 12345-6789; and contains a directive based on Technique Open SSH Server.
> Then, if you refer to ${rudder.12345-6789.OPENSSH_SERVER_PORTS} you'll
> get the list of ports for SSH you defined in the directive based on
> technique OpenSSH Server in Rule "Config SSH for Prod"

Got it, thanks for explaining :)


**********************************************************************************************
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