Classes are local to their bundle, except for the common bundles and classes bodies. So you can either define that class in the edit_line bundle, or pass a variable into it.
2010/10/5 JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN <[email protected]>: > > Is the correct way to reference HasCe inside config_etc_system this? > $(foo1.HasCe) > > - Jim > > ----- Original Message ----- > From: Jim Amanatidis <[email protected]> > To: [email protected] > At: 10/05 10:25:41 > > Looking for some help/info on classes scope, for example: > > bundle agent foo1 { > classes: > "HasCe" expression => returnszero("/bin/grep \\\"ce\\\" > /etc/path_to_inst", "noshell"); > > .... > > files: > "/etc/system" > edit_line => config_etc_system; > .... > } > > bundle edit_line config_etc_system { > delete_lines: > !HasCe:: > "set ce:.*"; > ... > } > > How do I make "HasCE" scope visible to config_etc_system? > Thanks, Jim > > > _______________________________________________ > Help-cfengine mailing list > [email protected] > https://cfengine.org/mailman/listinfo/help-cfengine > _______________________________________________ > Help-cfengine mailing list > [email protected] > https://cfengine.org/mailman/listinfo/help-cfengine > -- SY, Seva Gluschenko. _______________________________________________ Help-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/help-cfengine
