Augments file def.json

thierry thunot <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
hello every body, 
I have a question about augments files and how to used.
First I want to position variables in an augment file and use these 
variables in the def.json. especially for "admit ip"

the augment file: list.json

{ 
       "vars": 
       { 
               "liste_ip_opt_access": "192.168.10.45" 
       } 

}

Extract of def.json

{ 
       "augments": 
       [ 
              "/var/cfengine/input/list.json" 
       ],
.....
.....
"vars": 
       { 
               
               "dir_personnalisation":{ 
                               "path":"/opt", 
                               "comment":"repertoire des fichiers ", 
                               "handle":"
server_access_grant_access_personnalisation", 
                               "admit_ips":[ 
                                       "$(def.liste_ip_opt_access)" 
                                       ] 
                                       },
......

Then when i run cf-served the variable is not valued

verbose: Access control lists: 
...
verbose:       Path: /opt/ 
verbose:               admit_ips: $(def.liste_ip_opt_access)

...

Is it possible in the def.json to use variables defined in augments file?

-- 
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/9f3fcb26-a447-4d97-b4db-3d71555c8962n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.