Re: Augments file def.json
thierry thunot <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
thanks for your answer :) Le lundi 27 février 2023 à 21:04:17 UTC+1, [email protected] a écrit : > Hi Thierry, > > First I want to position variables in an augment file and use these > variables in the def.json. especially for "admit ip". > > The notes in the def.json Augments Files documentation > <https://docs.cfengine.com/docs/3.21/reference-language-concepts-augments.html#def-json> > indicate that sys vars are expanded (unlike host_specific.json) which > notes explicitly that it does not support expansion of CFEngine variables. > So, perhaps we should update the wording there a bit to be more clear and > say variables (except for sys vars) are not expanded. > > Is it possible in the def.json to use variables defined in augments file? > > No, it is not, at least those variables will not be expanded by the > Augments processing, but CFEngine evaluation may expand them later. > -- You received this message because you are subscribed to the Google Groups "help-cfengine" 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/help-cfengine/e4351bd9-ddcf-4d16-bee0-4e04f91a6ac8n%40googlegroups.com.