Puppet Function: profile::mcrouter_pools

Defined in:
modules/profile/functions/mcrouter_pools.pp
Function type:
Puppet Language

Overview

profile::mcrouter_pools(String $pool_name, Hash $servers, String $proto, Stdlib::Port $port)Hash

Parameters:

  • pool_name (String)
  • servers (Hash)
  • proto (String)
  • port (Stdlib::Port)

Returns:

  • (Hash)


1
2
3
4
5
6
7
8
9
# File 'modules/profile/functions/mcrouter_pools.pp', line 1

function profile::mcrouter_pools(String $pool_name, Hash $servers, String $proto, Stdlib::Port $port) >> Hash {
    {
        $pool_name => {
            'servers' => $servers.map |$shard_slot, $address| {
                    "${address['host']}:${port}:ascii:${proto}"
            }
        }
    }
}