fix some netdisco-rancid-export defaults, add doc note about cron

This commit is contained in:
Oliver Gorwits
2014-06-19 21:54:51 +01:00
parent 8148667d9e
commit 2a15f61646

View File

@@ -43,8 +43,8 @@ use Dancer::Plugin::DBIC 'schema';
use App::Netdisco::Util::Permission ':all'; use App::Netdisco::Util::Permission ':all';
my $settings = setting( 'rancid' ); my $settings = setting( 'rancid' );
my $down_age = $settings->{ 'down_age' } || '1 hour'; my $down_age = $settings->{ 'down_age' } || '1 day';
my $rancidhome = $settings->{ 'rancid_home' } || '/var/rancid'; my $rancidhome = $settings->{ 'rancid_home' } || '/var/lib/rancid';
my $by_ip = {}; my $by_ip = {};
foreach my $g (@{$settings->{ 'by_ip' }}) { foreach my $g (@{$settings->{ 'by_ip' }}) {
$by_ip->{$g} = 1; $by_ip->{$g} = 1;
@@ -114,6 +114,10 @@ This script requires some configuration to be added to your Netdisco
rtr: [ 'name:[rR]tr.*' ] rtr: [ 'name:[rR]tr.*' ]
ap: [ 'name:[aA][pP].*' ] ap: [ 'name:[aA][pP].*' ]
Note that C<netdisco-rancid-export> is not part of the automatic scheduler
built in to Netdisco. You should run this script via C<cron> just after your
periodic C<discoverall>.
=head2 C<rancid_home> =head2 C<rancid_home>
The location to write RANCID Group configuration files into. A subdirectory The location to write RANCID Group configuration files into. A subdirectory