Forum: CFEngine Help
Subject: Re: CFEngine Help: Bundle meta data
Author: eystein
Link to topic: https://cfengine.com/forum/read.php?3,25271,25288#msg-25288

Mark,

I like the vars-alias idea, it is essentially a varibale.
We could prefix meta to the variable name to make it accessible from other 
bundles.

E.g.

bundle agent test
{
meta:
 "email" string => "a@b.c";
}

can be accessed as $(test.meta_email) for example. Of course, it is 
theoretically possible to have clashes with vars if you have a var called 
meta_email also. There may be safer ways to do it. For practical purposes this 
absolute correctness is probably not that important, though. 

I would like to have a different promise-type, because I would like to have the 
opportunity to add more attributes to it, that are not present in the vars:.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to