The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

netdisco-rancid-export - Generate RANCID Group Configuration

CONFIGURATION

This script requires some configuration to be added to your Netdisco "~/environments/deployment.yml" file, for example:

 rancid:
   rancid_home:  /var/lib/rancid
   down_age:     '1 day'
   by_ip:        [ other ]
   groups:
     switch:     [ 'name:.*[Ss][Ww].*' ]
     rtr:        [ 'name:[rR]tr.*' ]
     ap:         [ 'name:[aA][pP].*' ]

rancid_home

The location to write RANCID Group configuration files into. A subdirectory for each Group will be created.

down_age

This should be the same or greater than the interval between regular discover jobs on your network. Devices which have not been discovered within this time will be marked as "down" to RANCID.

groups

This dictionary maps RANCID Group names with configuration which will match devices in the Netdisco database. The configuration is the same as any of Netdisco's "*_only" settings, and accepts IP, prefix, device property.

by_ip

List of RANCID Groups which will have Device IPs written to the RANCID configuration file, instead of DNS or SNMP host names.

SEE ALSO