Sandra, you must give a fully qualified name for your list @(g.sdm_host_list) not merely @(sdm_host_list)
when you refer to it from a different bundle. Just as you need to give a fully qualified host name when you refer to it outside a local domain. Otherwise it is assumed that the variable is defined in the same bundle as where it is used. M On 02/18/2011 11:53 PM, Sandra Wittenbrock wrote: > I haven't been able to use a variable for a list of hosts in the access > lists. The files in question are world readable, so file owner and > permissions should not be an issue. > > When I do not use a variable, but list all the servers by IP address, > the access works. When defined thusly, everything works: > > access: > "/var/lib/cfengine3/masterfiles/conf" > admit => { "255.3.30.207", > "255.3.30.201", "255.3.30.207", "255.3.30.46", "255.3.30.47", > "255.3.30.48", "255.3.30.49", "255.3.30.64","255.3.30.108", > "255.3.30.109", "255.3.30.36", "255.3.30.103", "255.3.30.45", > "255.3.30.102", "255.3.30.105" }; > > > When done as follows connection fails: > > bundle common g{ > vars: > "sdm_host_list" slist => { "255.3.30.207", "255.3.30.201", > "255.3.30.207", "255.3.30.46", "255.3.30.47", "255.3.30.48", > "255.3.30.49", "255.3.30.64","255.3.30.108", "255.3.30.109", > "255.3.30.36", "255.3.30.103", "255.3.30.45", "255.3.30.102", > "255.3.30.105" }; > } > > > bundle server access_rules > { > access: > "/var/lib/cfengine3/masterfiles/conf" > admit => { @{sdm_host_list} }; > > } > > > Regards, > Sandra > > > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine