Sandra, I think what you want to do is include one list in another. In that case you must refer to the list as @(variable). By writing $(variable) you are asking Cfengine to iterate the promise multiple times FOREACH value in @(variable), defining multiple conflicting access promises. See
http://www.cfengine.org/manuals/cf3-reference.html#List-variable-substitution-and-expansion On 02/01/2011 01:04 AM, Sandra Wittenbrock wrote: > Hello, > > I am trying to use a list of servers, so I don't have to enter the > servers individually. Unfortunately, the variable sdm_host_list is not > working for me. Any pointers would be appreciated. > > Currently I have in serverd.cf: > > body server control > { > > allowallconnects => { > "${sdm_host_list}", "255.3.30.207", > "255.3.30.152", "255.3.30.201","255.3.30.45", "255.3.30.108", "255.3.30.105" > #"${g.sdmhosts}", "datagrid_lbl_gov" > }; > allowconnects => { > "${sdm_host_list}","255.3.30.207", > "255.3.30.152", "255.3.30.201", "255.3.30.45", "255.3.30.108", > "255.3.30.105" > #"dmx17.lbl.gov", "255.3.30.207" > }; > maxconnections => "30"; > logallconnections => "true"; > trustkeysfrom => {"${sdm_host_list}","255.3.30.207", > "255.3.30.152","255.3.30.201", "255.3.30.45", "255.3.30.108" , > "255.3.30.105"}; > > allowusers => {"root"}; > > } > > > bundle server access_rules { > vars: > > "sdm_host_list" slist => { "255.3.30.102", "255.3.30.43" }; > > access: > # /var/lib/cfengine3/masterfiles > "${g.masterfiles}" > admit => { "${sdm_host_list}","255.3.30.45", > "255.3.30.201", "255.3.30.108", "255.3.30.105","255.3.30.207"}; > #,"255.3.30.102" }; > # /var/lib/cfengine3/inputs > "${g.inputs}" > admit => { "${sdm_host_list}","255.3.30.45", > "255.3.30.201","255.3.30.108" , "255.3.30.105", "255.3.30.207"}; > #,"255.3.30.102"}; > "/etc" > admit => { "${sdm_host_list}","255.3.30.45", "255.3.30.201" > ,"255.3.30.108", "255.3.30.105", "255.3.30.207"}; > #,"255.3.30.102"}; > "/opt" > admit => { "${sdm_host_list}","255.3.30.45", > "255.3.30.201", "255.3.30.207"}; > #,"255.3.30.102" }; > "/var/lib/cfengine3/masterfiles/cf-failsafe.sh" > admit => { "${sdm_host_list}","255.3.30.45", "255.3.30.201" > ,"255.3.30.108", "255.3.30.105", "255.3.30.207"}; > #,"255.3.30.102"}; > "/var/lib/cfengine3/bin/cf-failsafe.sh" > admit => { "${sdm_host_list}","255.3.30.45", "255.3.30.201" > ,"255.3.30.108", "255.3.30.105", "255.3.30.207"}; > #,"255.3.30.102"}; > "/var/lib/cfengine3/masterfiles/conf/sshd_config" > admit => { "${sdm_host_list}","255.3.30.45", "255.3.30.201" > ,"255.3.30.108", "255.3.30.105", "255.3.30.207"}; > #,"255.3.30.102"}; > > > } > > > > > > > > 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