Puppet Class: profile::rancid

Defined in:
modules/profile/manifests/rancid.pp

Overview

Really Awful Notorious CIsco config Differ

Parameters:

  • active_server (Stdlib::Fqdn) (defaults to: lookup('netmon_server'))
  • passive_server (Stdlib::Fqdn) (defaults to: lookup('netmon_server_failover'))


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/profile/manifests/rancid.pp', line 2

class profile::rancid (
    Stdlib::Fqdn $active_server  = lookup('netmon_server'),
    Stdlib::Fqdn $passive_server = lookup('netmon_server_failover'),
){

    class { '::rancid':
        active_server => $active_server,
    }

    backup::set { 'rancid': }

    rsync::quickdatacopy { 'var-lib-rancid':
      ensure              => present,
      auto_sync           => false,
      source_host         => $active_server,
      dest_host           => $passive_server,
      module_path         => '/var/lib/rancid',
      server_uses_stunnel => true,
    }
}