cf73ef450c513a560897a63cc8a23dead8b792c0
[freeside.git] / FS / FS / part_export / bind.pm
1 package FS::part_export::bind;
2
3 use vars qw(@ISA %info %options);
4 use Tie::IxHash;
5 use FS::part_export::null;
6
7 @ISA = qw(FS::part_export::null);
8
9 tie %options, 'Tie::IxHash',
10   'named_conf'   => { label  => 'named.conf location',
11                       default=> '/etc/bind/named.conf' },
12   'zonepath'     => { label => 'path to zone files',
13                       default=> '/etc/bind/', },
14   'bind_release' => { label => 'ISC BIND Release',
15                       type  => 'select',
16                       options => [qw(BIND8 BIND9)],
17                       default => 'BIND8' },
18   'bind9_minttl' => { label => 'The minttl required by bind9 and RFC1035.',
19                       default => '1D' },
20 ;
21
22 %info = (
23   'svc'     => 'svc_domain',
24   'desc'    => 'Batch export to BIND named',
25   'options' => \%options,
26   'notes'   => <<'END'
27 Batch export of BIND zone and configuration files to a primary nameserver.
28 <a href="http://search.cpan.org/search?dist=File-Rsync">File::Rsync</a>
29 must be installed.  Run bin/bind.export to export the files.
30 END
31 );
32
33 1;
34