Well, that was me asking for files before methods. I can't remember the way we've been discussing the normal ordering at whole, but now the ordering is as follows (from src/agent.c):
char *TYPESEQUENCE[] = { "vars", "classes", /* Maelstrom order 2 */ "outputs", "interfaces", "files", "packages", "environments", "methods", "processes", "services", "commands", "storage", "databases", "reports", NULL }; The precedence of files before or after packages is ambiguous because files promises may well be used for distributing packages themselves. On the other hand, there's certain need for finalizing files after packages installation. As for me, there's no much harm in putting files before packages since they must be successfully evaluated on the second run if the first run installs a package. It was important to put'em before methods. 2010/11/8 Michael Potter <mega...@gmail.com>: > Is the normal ordering as documented in the ref guide correct? > > vars > classes > outputs > interfaces > processes > storage > packages > commands > methods > files > > In a bundle that has vars, classes, files and packages promises, I see > the ordering start out like this: > > > cf3 > cf3 ========================================================= > cf3 vars in bundle monitoring (1) > cf3 ========================================================= > cf3 > cf3 Extended process options are only available with Cfengine Nova or above > cf3 > cf3 ========================================================= > cf3 classes in bundle monitoring (1) > cf3 ========================================================= > cf3 > cf3 Extended process options are only available with Cfengine Nova or above > cf3 Class identifier "need_logwatch.html" contains illegal characters > - canonifying > cf3 Class identifier "need_fwlogwatch.html" contains illegal > characters - canonifying > cf3 Class identifier "need_chkrootkit.txt" contains illegal characters > - canonifying > cf3 Class identifier "update_logwatch.html" contains illegal > characters - canonifying > cf3 Class identifier "update_fwlogwatch.html" contains illegal > characters - canonifying > cf3 Class identifier "update_chkrootkit.txt" contains illegal > characters - canonifying > cf3 > cf3 + Private classes augmented: > cf3 + need_chkrootkit_txt > cf3 + update_chkrootkit_txt > cf3 > cf3 - Private classes diminished: > cf3 > cf3 > cf3 > cf3 ========================================================= > cf3 files in bundle monitoring (1) > cf3 ========================================================= > > It seems strange that files should come well before packages, as a > package might provide a file required during a files promise, even > more so as the ref guide says they shouldn't. Do classes and things > like ifvarclass change the normal ordering? > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine > -- SY, Seva Gluschenko. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine