Sorry, Trond. This is not a convergent expression (infinite loop). You need to use a different variable to compose the result.
vars: any:: "evil_files" slist => { @(other_list) }; redhat:: "evil_files" slist => { @(other_list), "/root/.rhosts", "/root/.shosts" }; This is convergent. See also the special topics guides on how to make a "switch case" in cfengine. Trond Hasle Amundsen wrote: > Hi, > > Do you know if it's possible to extend an slist with additional values > based on classes? Something along the lines of > > vars: > any:: > "evil_files" slist => { "/etc/hosts.equiv" }; > redhat:: > "evil_files" slist => { @(evil_files), "/root/.rhosts", "/root/.shosts" }; > > The above code doesn't work, other than for illustration purposes. > > Cheers, -- Mark Burgess ------------------------------------------------- Professor of Network and System Administration Oslo University College, Norway Personal Web: http://www.iu.hio.no/~mark Office Telf : +47 22453272 ------------------------------------------------- _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine