You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-26Lines changed: 38 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -1059,7 +1059,7 @@ For example:
1059
1059
1060
1060
#### `dig`
1061
1061
1062
-
> DEPRECATED: This function has been replaced with a built-in [`dig`](https://docs.puppet.com/puppet/latest/function.html#dig) function as of Puppet 4.5.0. Use [`dig44()`](#dig44) for backwards compatibility or use the new version.
1062
+
**Deprecated:** This function has been replaced with a built-in [`dig`](https://docs.puppet.com/puppet/latest/function.html#dig) function as of Puppet 4.5.0. Use [`dig44()`](#dig44) for backwards compatibility or use the new version.
1063
1063
1064
1064
Retrieves a value within multiple layers of hashes and arrays via an array of keys containing a path. The function goes through the structure by each path component and tries to return the value at the end of the path.
1065
1065
@@ -1163,6 +1163,8 @@ Converts the case of a string or of all strings in an array to lowercase.
1163
1163
1164
1164
#### `empty`
1165
1165
1166
+
**Deprecated:** This function has been replaced with a built-in [`empty`](https://docs.puppet.com/puppet/latest/function.html#empty) function as of Puppet 5.5.0.
1167
+
1166
1168
Returns `true` if the argument is an array or hash that contains no elements, or an empty string. Returns `false` when the argument is a numerical value.
**Deprecated:** This function has been replaced with a built-in [`flatten`](https://docs.puppet.com/puppet/latest/function.html#flatten) function as of Puppet 5.5.0.
1280
+
1277
1281
Flattens deeply nested arrays and returns a single flat array as a result.
1278
1282
1279
1283
For example, `flatten(['a', ['b', ['c']]])` returns ['a','b','c'].
@@ -1514,31 +1518,31 @@ if $baz.is_a(String) {
1514
1518
1515
1519
#### `is_absolute_path`
1516
1520
1517
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1521
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1518
1522
1519
1523
Returns `true` if the given path is absolute.
1520
1524
1521
1525
*Type*: rvalue.
1522
1526
1523
1527
#### `is_array`
1524
1528
1525
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1529
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1526
1530
1527
1531
Returns `true` if the variable passed to this function is an array.
1528
1532
1529
1533
*Type*: rvalue.
1530
1534
1531
1535
#### `is_bool`
1532
1536
1533
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1537
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1534
1538
1535
1539
Returns `true` if the variable passed to this function is a Boolean.
1536
1540
1537
1541
*Type*: rvalue.
1538
1542
1539
1543
#### `is_domain_name`
1540
1544
1541
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1545
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1542
1546
1543
1547
Returns `true` if the string passed to this function is a syntactically correct domain name.
1544
1548
@@ -1553,55 +1557,55 @@ Returns true if the string passed to this function is a valid email address.
1553
1557
1554
1558
#### `is_float`
1555
1559
1556
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1560
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1557
1561
1558
1562
Returns `true` if the variable passed to this function is a float.
1559
1563
1560
1564
*Type*: rvalue.
1561
1565
1562
1566
#### `is_function_available`
1563
1567
1564
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1568
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1565
1569
1566
1570
Accepts a string as an argument and determines whether the Puppet runtime has access to a function by that name. It returns `true` if the function exists, `false` if not.
1567
1571
1568
1572
*Type*: rvalue.
1569
1573
1570
1574
#### `is_hash`
1571
1575
1572
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1576
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1573
1577
1574
1578
Returns `true` if the variable passed to this function is a hash.
1575
1579
1576
1580
*Type*: rvalue.
1577
1581
1578
1582
#### `is_integer`
1579
1583
1580
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1584
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1581
1585
1582
1586
Returns `true` if the variable returned to this string is an integer.
1583
1587
1584
1588
*Type*: rvalue.
1585
1589
1586
1590
#### `is_ip_address`
1587
1591
1588
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1592
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1589
1593
1590
1594
Returns `true` if the string passed to this function is a valid IP address.
1591
1595
1592
1596
*Type*: rvalue.
1593
1597
1594
1598
#### `is_ipv6_address`
1595
1599
1596
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1600
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1597
1601
1598
1602
Returns `true` if the string passed to this function is a valid IPv6 address.
1599
1603
1600
1604
*Type*: rvalue.
1601
1605
1602
1606
#### `is_ipv4_address`
1603
1607
1604
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1608
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1605
1609
1606
1610
Returns `true` if the string passed to this function is a valid IPv4 address.
1607
1611
@@ -1615,22 +1619,24 @@ Returns `true` if the string passed to this function is a valid MAC address.
1615
1619
1616
1620
#### `is_numeric`
1617
1621
1618
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1622
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1619
1623
1620
1624
Returns `true` if the variable passed to this function is a number.
1621
1625
1622
1626
*Type*: rvalue.
1623
1627
1624
1628
#### `is_string`
1625
1629
1626
-
**Deprecated. Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).**
1630
+
**Deprecated:** Will be removed in a future version of stdlib. See [`validate_legacy`](#validate_legacy).
1627
1631
1628
1632
Returns `true` if the variable passed to this function is a string.
1629
1633
1630
1634
*Type*: rvalue.
1631
1635
1632
1636
#### `join`
1633
1637
1638
+
**Deprecated:** This function has been replaced with a built-in [`join`](https://docs.puppet.com/puppet/latest/function.html#join) function as of Puppet 5.5.0.
1639
+
1634
1640
Joins an array into a string using a separator. For example, `join(['a','b','c'], ",")` results in: "a,b,c".
1635
1641
1636
1642
*Type*: rvalue.
@@ -1647,12 +1653,16 @@ For example, `join_keys_to_values({'a'=>1,'b'=>[2,3]}, " is ")` results in ["a i
1647
1653
1648
1654
#### `keys`
1649
1655
1656
+
**Deprecated:** This function has been replaced with a built-in [`keys`](https://docs.puppet.com/puppet/latest/function.html#keys) function as of Puppet 5.5.0.
1657
+
1650
1658
Returns the keys of a hash as an array.
1651
1659
1652
1660
*Type*: rvalue.
1653
1661
1654
1662
#### `length`
1655
1663
1664
+
**Deprecated:** This function has been replaced with a built-in [`length`](https://docs.puppet.com/puppet/latest/function.html#length) function as of Puppet 5.5.0.
1665
+
1656
1666
Returns the length of a given string, array or hash. Replaces the deprecated `size()` function.
1657
1667
1658
1668
*Type*: rvalue.
@@ -2132,7 +2142,7 @@ For example, `{ "key" => "value" }` becomes `"---\nkey: value\n"`.
2132
2142
2133
2143
#### `try_get_value`
2134
2144
2135
-
**DEPRECATED:** replaced by `dig()`.
2145
+
**Deprecated:** replaced by `dig()`.
2136
2146
2137
2147
Retrieves a value within multiple layers of hashes and arrays.
**Deprecated**. This function will be removed in a future release.
2194
+
**Deprecated:** This function will be removed in a future release.
2185
2195
2186
2196
Returns a string description of the type of a given value. The type can be a string, array, hash, float, integer, or Boolean. For Puppet 4, use the new type system instead.
**Deprecated:** This function has been replaced with a built-in [`values`](https://docs.puppet.com/puppet/latest/function.html#values) function as of Puppet 5.5.0.
2788
+
2777
2789
Returns the values of a given hash.
2778
2790
2779
2791
For example, given `$hash = {'a'=1, 'b'=2, 'c'=3} values($hash)` returns [1,2,3].
0 commit comments