diff options
author | ivan <ivan> | 2004-03-24 14:28:48 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-03-24 14:28:48 +0000 |
commit | dabdf357484badff95afcae50b08ec1c3bb58343 (patch) | |
tree | be9286511b919228eda79aa69efacddf449851fb /FS/FS/part_export/apache.pm | |
parent | 7de51deb0e3e3fe1b0a9e06be6498256d5511bd0 (diff) |
move export info to the modules themselves
Diffstat (limited to 'FS/FS/part_export/apache.pm')
-rw-r--r-- | FS/FS/part_export/apache.pm | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/FS/FS/part_export/apache.pm b/FS/FS/part_export/apache.pm index 9161d72..b16b304 100644 --- a/FS/FS/part_export/apache.pm +++ b/FS/FS/part_export/apache.pm @@ -1,7 +1,43 @@ package FS::part_export::apache; -use vars qw(@ISA); +use vars qw(@ISA %info); +use Tie::IxHash; use FS::part_export::null; @ISA = qw(FS::part_export::null); +tie my %options, 'Tie::IxHash', + 'user' => { label=>'Remote username', default=>'root' }, + 'httpd_conf' => { label=>'httpd.conf snippet location', + default=>'/etc/apache/httpd-freeside.conf', }, + 'template' => { + label => 'Template', + type => 'textarea', + default => <<'END', +<VirtualHost $domain> #generic +#<VirtualHost ip.addr> #preferred, http://httpd.apache.org/docs/dns-caveats.html +DocumentRoot /var/www/$zone +ServerName $zone +ServerAlias *.$zone +#BandWidthModule On +#LargeFileLimit 4096 12288 +</VirtualHost> + +END + }, +; + +%info = ( + 'svc' => 'svc_www', + 'desc' => 'Export an Apache httpd.conf file snippet.', + 'options' => \%options, + 'notes' => <<'END' +Batch export of an httpd.conf snippet from a template. Typically used with +something like <code>Include /etc/apache/httpd-freeside.conf</code> in +httpd.conf. <a href="http://search.cpan.org/dist/File-Rsync">File::Rsync</a> +must be installed. Run bin/apache.export to export the files. +END +); + +1; + |