Puppet Class: profile::rancid
- Defined in:
- modules/profile/manifests/rancid.pp
Overview
SPDX-License-Identifier: Apache-2.0 Really Awful Notorious CIsco config Differ
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# 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',
}
}
}
|