Puppet Class: profile::rancid

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

Overview

SPDX-License-Identifier: Apache-2.0 Really Awful Notorious CIsco config Differ

Parameters:

  • active_server (Stdlib::Fqdn) (defaults to: lookup('netmon_server'))
  • passive_servers (Array[Stdlib::Fqdn]) (defaults to: lookup('netmon_servers_failover'))


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'modules/profile/manifests/rancid.pp', line 3

class profile::rancid (
    Stdlib::Fqdn        $active_server   = lookup('netmon_server'),
    Array[Stdlib::Fqdn] $passive_servers = lookup('netmon_servers_failover'),
){

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

    backup::set { 'rancid': }

    $passive_servers.each |Stdlib::Fqdn $passive_server| {
        rsync::quickdatacopy { "var-lib-rancid-${passive_server}":
            ensure              => present,
            auto_sync           => false,
            source_host         => $active_server,
            dest_host           => $passive_server,
            module_path         => '/var/lib/rancid',
            server_uses_stunnel => true,
            chown               => 'rancid:rancid',
        }
    }

    # TODO: clean up after T309074
    rsync::quickdatacopy { 'var-lib-rancid':
        ensure      => absent,
        source_host => 'netmon1002.wikimedia.org',
        dest_host   => 'netmon2001.wikimedia.org',
        module_path => '/var/lib/rancid',
    }

    profile::contact { $title:
        contacts => ['ayounsi']
    }
}