Puppet Class: redis::multidc::ipsec

Defined in:
modules/redis/manifests/multidc/ipsec.pp

Overview

class redis::multidc::ipsec

Parameters:

  • shards (Any)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/redis/manifests/multidc/ipsec.pp', line 2

class redis::multidc::ipsec($shards) {
    #################################################################
    # Set up IPsec between hosts (for encrypting the redis replica) #
    #################################################################

    # This is actually more reliable than $::ipaddress for our uses
    $my_ip = ipresolve($::fqdn, 4)
    $ipsec_host_list = redis_shard_hosts($my_ip, $shards)

    # No reason to define IPsec if the host doesn't need replication.
    if size($ipsec_host_list) > 0 {
        class { '::role::ipsec':
            hosts => $ipsec_host_list,
        }
    }
}