Forum: Cfengine Help
Subject: List expansion in access rules
Author: JarleB
Link to topic: https://cfengine.com/forum/read.php?3,17585,17585#msg-17585
Hello,
consider the following cf-serverd access rules.
bundle server access_rules()
{
vars:
"file_repos" slist => { "stage/inputs", "stage/modules", "repo"};
access:
"$(var.master_files_prod)/$(file_repos)" admit => { @(var.client_networks) };
"$(var.master_files_test)/$(file_repos)" admit => { @(var.client_networks) };
"$(var.master_files_dev)/$(file_repos)" admit => { @(var.client_networks) };
}
The intention is to maintain only the variables @(var.client_networks) and
@(file_repos) in order and let the rules expand, but this does not behave as
expected.
Any ideas ?
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine