Config::Maker ============= =head1 About Config::Maker is perl program, that generates text files from templates and configuration values. It is useful to keep all configuration in one place and configure many different services from that. I wrote it and use it for generating firewall configuration, DNS zone file and dhcp server config for a small network. The idea is a combination of Embperl and XSLT, except it's not that heavyweight. The template is copied to the output, while substituting directives with respective values from the configuration. The values are refered with paths, that are similar to XPath, but a bit less featurefull. =head1 Instalation This module uses Module::Build infrastructure for building. To build it, unpack the source tarball, enter the directory and type: perl Build.PL ./Build ./Build install For various options available, please refer to the L documentation. A Makefile.PL is provided for backwards compatibility. To use it, unpack the source tarball, enter the directory and type: perl Makefile.PL make make install For various option available, please refer to the L documentation. The later method (and both methods in newer versions) is understood by the CPAN shell (see L). You can use that to install. =head1 Using The program is normaly invoked via the C script. It takes a metaconfig as an argument, which governs all the generation. In the metaconfig, a list of configuration sources (files) is given and for each a list of templates that should be instantiated (also files) are given. Result of expanding a template can be saved to a file, piped to a command, or possibly both. If an error is encountered anywhere during the processing, the results are not installed so the previous configuration is not broken. For details refer to L. There is one additional auxiliary script, C. It is useful if you generate a script, that shall be run on another machine. Just install the C script on the target machine and specify C run-and-save --act I> as a C for given template. This script installs your script as I and executes it. Don't forget to end your template with C<#COMMIT> to indicate that whole script was transfered. The C script can also take the name from first line of input. =head1 Author Jan Hudec bulb@ucw.cz =head1 Copyright And License Copyright 2004 Jan Hudec. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut # arch-tag: 623443ed-6268-4da9-b89c-8e679a997071