> I currently have a file (groups.cf) which defines a number of > groups. I want to be able to import this file into my cfagent.conf file > (as well as others). Since the groups can change I would rather make > the changes in one file and have it propagate to the others instead of > going through each file individually and modifying the groups. What > would the syntax be for importing this groups.cf file and referencing > the groups contained in it in my .conf files? Any suggestions would be > much appreciated. >
Dustin, Cfengine configuration files aren't really "imported into" other configuration files. Instead, they are "imported", or parsed and acted on, by a running instance of cfagent on a given machine. groups.cf is typically one of a couple of configuration files that every host is going to want to "import" or read, so often (but not necessarily) the import statement for it is in cfagent.conf. So in cfagent.conf, you might do this: import: groups.cf main.cf Now you can use the groups (aka, classes) defined in groups.cf in main.cf, or any subsequently imported files. You can even use them in cfagent.conf, though you may need to list them in an "AddInstallables" variable declared in a 'control:' section there. So in main.cf, you might have: import: WebServer:: webserver.cf -Ed _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine