5.3 <Template>

To specify what files should be copied over to the template filesystem, edit the /etc/virt_template.conf file. Within the <Template> section, you will notice, for example:

bin_files = ls echo bash ...

In the above example the bin_files variable holds the names of the files which are to be copied from the main server's /bin directory to the template filesystem, ie /virtual/template/bin. Seperate each filename with a space. Therefore, from the value of bin_files above, each virtual server will contain ls, echo, bash and whatever else was specified. Here is an outline of which directories are dealt with:

If you would like to copy a whole directory to the template directory, for example /usr/sbin/some_dir, you may list some_dir/* within the usr_sbin_files list. Another alternative is to edit the <Custom Template> section (below).

You must be asking yourself about the /etc/ directory. Since this directory is very specific to each server, and not general such as the executables mentioned above, we must choose the files carefully. When creating a template, the sendmail configuration files are copied over (sendmail.cf) and some are created on the fly (sendmail.cw).

By default the template directory will be /virtual/template but you can always change this value within /etc/virt_template.conf.