Skip to content
Simple Puppet module to install and configure RANCID
Puppet
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
manifests absolute path for su Jun 29, 2014
templates initial commit Jan 9, 2013
README.md add cronjob examples to readme Jan 9, 2013

README.md

Puppet Module for RANCID

This is a simple Puppet module for installing and configuring RANCID - Really Awesome New Cisco confIg Differ.

Read more about RANCID: RANCID Website

Supported OS

  • Debian
  • Ubuntu

Basic usage

class { ::rancid:
  groups => [ 'router', 'switches' ],
}

Create some Mailaliases

mailalias {
  [ 'rancid-router', 'rancid-switches' ]:
      ensure    => present,
      notify    => Exec['newaliases'],
      recipient => 'yourname@yourdomain.com';

  [ 'rancid-admin-router', 'rancid-admin-switches' ]:
      ensure    => present,
      notify    => Exec['newaliases'],
      recipient => 'yourname@yourdomain.com';
}

Define cron jobs

cron {
  'Rancid run':
      command => '/usr/bin/rancid-run',
      user    => 'rancid',
      minute  => '15',
      hour    => [6, 12, 15, 18, 23],

  'Rancid cleanup':
      command => '/usr/bin/find /var/log/rancid -type f -mtime +2 -exec rm {} \;',
      user    => 'rancid',
      minute  => '50',
      hour    => '23';
}

Author

You can’t perform that action at this time.