Puppet Function: bodgitlib::enclose_ipv6

Defined in:
functions/enclose_ipv6.pp
Function type:
Puppet Language

Overview

bodgitlib::enclose_ipv6(Bodgitlib::Host $host)Any

Parameters:

  • host (Bodgitlib::Host)

Returns:

  • (Any)

Since:

  • 1.7.0



2
3
4
5
6
7
8
# File 'functions/enclose_ipv6.pp', line 2

function bodgitlib::enclose_ipv6(Bodgitlib::Host $host) {

  type($host) ? {
    Type[IP::Address::V6::NoSubnet] => "[${host}]",
    default                         => $host,
  }
}