Puppet Function: stdlib::has_ip_address

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

Summary

Returns true if the client has the requested IPv4 address on some interface.

Overview

stdlib::has_ip_address(Stdlib::IP::Address::V4::Nosubnet $ip_address)Boolean

Parameters:

  • ip_address (Stdlib::IP::Address::V4::Nosubnet)

    The IPv4 address you want to check the existence of

Returns:

  • (Boolean)

    Returns ‘true` if the requested IP address exists on any interface.



6
7
8
9
10
# File 'functions/has_ip_address.pp', line 6

function stdlib::has_ip_address(
  Stdlib::IP::Address::V4::Nosubnet $ip_address,
) >> Boolean {
  stdlib::has_interface_with('ipaddress', $ip_address)
}