crypto and collection functions references

docs/packer-seo-templates-batch2
trujillo-adam 1 year ago
parent c5036e233d
commit 953c814ad5

@ -1,8 +1,8 @@
---
page_title: alltrue - Functions - Configuration Language
page_title: alltrue function reference
description: |-
The alltrue function determines whether all elements of a collection
are true or "true". If the collection is empty, it returns true.
The `alltrue` function returns `true` if all elements in a collection
are `true`, `"true"`, or if the collection is empty. Learn how to use the `alltrue` function in Packer templates.
---
# `alltrue` Function

@ -1,8 +1,8 @@
---
page_title: anytrue - Functions - Configuration Language
page_title: anytrue function reference
description: |-
The anytrue function determines whether any element of a collection
is true or "true". If the collection is empty, it returns false.
The `anytrue` function returns `true` if any element of a collection
is `true` or `"true"`. Learn how to use the `anytrue` function in Packer templates.
---
# `anytrue` Function

@ -1,8 +1,8 @@
---
page_title: chunklist - Functions - Configuration Language
page_title: chunklist function reference
description: |-
The chunklist function splits a single list into fixed-size chunks, returning
a list of lists.
The `chunklist` function splits a single list into fixed-size chunks and returns
a list of lists. Learn how to use the `chunklist` function in Packer templates.
---
# `chunklist` Function

@ -1,8 +1,7 @@
---
page_title: coalesce - Functions - Configuration Language
page_title: coalesce function reference
description: |-
The coalesce function takes any number of arguments and returns the
first one that isn't null nor empty.
The `coalesce` function returns the first argument that is not empty or `null` from a list of arguments. Learn to use the `coalesce` function in Packer templates.
---
# `coalesce` Function

@ -1,8 +1,7 @@
---
page_title: coalescelist - Functions - Configuration Language
page_title: coalescelist function reference
description: |-
The coalescelist function takes any number of list arguments and returns the
first one that isn't empty.
The `coalescelist` function returns the first non-empty argument in a list of arguments. Learn how to use the `coalescelist` function in Packer templates.
---
# `coalescelist` Function

@ -1,6 +1,6 @@
---
page_title: compact - Functions - Configuration Language
description: The compact function removes empty string elements from a list.
page_title: compact function reference
description: The `compact` function removes empty string elements from a list. Learn how to use the `compact` function in Packer templates.
---
# `compact` Function

@ -1,6 +1,6 @@
---
page_title: concat - Functions - Configuration Language
description: The concat function combines two or more lists into a single list.
page_title: concat function reference
description: The `concat` function combines two or more lists into a single list. Learn how to use the `concat` function in Packer templates.
---
# `concat` Function

@ -1,6 +1,6 @@
---
page_title: contains - Functions - Configuration Language
description: The contains function determines whether a list or set contains a given value.
page_title: contains function reference
description: The `contains` function determines whether a list or set contains a given value. Learn how to use the `contains` function in Packer templates.
---
# `contains` Function

@ -1,6 +1,6 @@
---
page_title: distinct - Functions - Configuration Language
description: The distinct function removes duplicate elements from a list.
page_title: distinct function reference
description: The `distinct` function removes duplicate elements from a list. Learn how to use the `distince` function in Packer templates.
---
# `distinct` Function

@ -1,6 +1,6 @@
---
page_title: element - Functions - Configuration Language
description: The element function retrieves a single element from a list.
page_title: element function reference
description: The `element` function retrieves a single element from a list. Learn how to use the `element` function in Packer templates.
---
# `element` Function

@ -1,6 +1,6 @@
---
page_title: flatten - Functions - Configuration Language
description: The flatten function eliminates nested lists from a list.
page_title: flatten function reference
description: The `flatten` function eliminates nested lists from a list. Learn how to use the `flatten` function in Packer templates.
---
# `flatten` Function

@ -1,6 +1,6 @@
---
page_title: index - Functions - Configuration Language
description: The index function finds the element index for a given value in a list.
page_title: index function reference
description: The `index` function finds the element index for a given value in a list. Learn how to use the `index` function in Packer templates.
---
# `index` Function

@ -1,6 +1,6 @@
---
page_title: keys - Functions - Configuration Language
description: The keys function returns a list of the keys in a given map.
page_title: keys function reference
description: The `keys` function returns a list of keys in a given map. Learn how to use the `key` function in Packer templates.
---
# `keys` Function

@ -1,6 +1,6 @@
---
page_title: length - Functions - Configuration Language
description: The length function determines the length of a collection or string.
page_title: length function reference
description: The `length` function determines the length of a collection or string. Learn how to use the `length` function in Packer templates.
---
# `length` Function

@ -1,6 +1,6 @@
---
page_title: lookup - Functions - Configuration Language
description: The lookup function retrieves an element value from a map given its key.
page_title: lookup function reference
description: The `lookup` function retrieves an element value from a map using the map key. Learn how to use the `lookup` function in Packer templates.
---
# `lookup` Function

@ -1,8 +1,7 @@
---
page_title: merge - Functions - Configuration Language
page_title: merge function reference
description: |-
The merge function takes an arbitrary number of maps and returns a single
map after merging the keys from each argument.
The `merge` function returns a single map by merging the keys in multiple maps. Learn how to use the `merge` function in Packer templates.
---
# `merge` Function

@ -1,6 +1,6 @@
---
page_title: range - Functions - Configuration Language
description: The range function generates sequences of numbers.
page_title: range function reference
description: The `range` function generates sequences of numbers. Learn how to use the `range` function in Packer templates.
---
# `range` Function

@ -1,6 +1,6 @@
---
page_title: reverse - Functions - Configuration Language
description: The reverse function reverses a sequence.
page_title: reverse function reference
description: The `reverse` function reverses the values in a sequence. Learn how to use the `reverse` function in Packer templates.
---
# `reverse` Function

@ -1,16 +1,14 @@
---
page_title: setintersection - Functions - Configuration Language
page_title: setintersection function reference
description: |-
The setintersection function takes multiple sets and produces a single set
containing only the elements that all of the given sets have in common.
The `setintersection` function creates one set from multiple sets that contains only elements common to all input sets. Learn how to use `setintersection` in Packer templates.
---
# `setintersection` Function
The `setintersection` function takes multiple sets and produces a single set
containing only the elements that all of the given sets have in common.
In other words, it computes the
[intersection](<https://en.wikipedia.org/wiki/Intersection_(set_theory)>) of the sets.
The new set is referred to as the _intersection_.
```hcl
setintersection(sets...)

@ -1,8 +1,8 @@
---
page_title: setproduct - Functions - Configuration Language
page_title: setproduct function reference
description: |-
The setproduct function finds all of the possible combinations of elements
from all of the given sets by computing the cartesian product.
The `setproduct` function finds all possible combinations of elements
from the given sets. Learn how to use the `setproduct` function in Packer templates.
---
# `setproduct` Function

@ -1,8 +1,7 @@
---
page_title: setunion - Functions - Configuration Language
page_title: setunion function reference
description: |-
The setunion function takes multiple sets and produces a single set
containing the elements from all of the given sets.
The `setunion` function creates one set containing the elements from multiple given sets. Learn how to use the `setunion` function in Packer templates.
---
# `setunion` Function

@ -1,6 +1,6 @@
---
page_title: slice - Functions - Configuration Language
description: The slice function extracts some consecutive elements from within a list.
page_title: slice function reference
description: The `slice` function extracts consecutive elements from a list. Learn how to use the `slice` function in Packer templates.
---
# `slice` Function

@ -1,8 +1,7 @@
---
page_title: sort - Functions - Configuration Language
page_title: sort function reference
description: |-
The sort function takes a list of strings and returns a new list with those
strings sorted lexicographically.
The `sort` function returns a new lexicographically sorted list from a list of strings. Learn how to use the `sort` function in Packer templates.
---
# `sort` Function

@ -1,6 +1,6 @@
---
page_title: values - Functions - Configuration Language
description: The values function returns a list of the element values in a given map.
page_title: values function reference
description: The `values` function returns a list of the element values in a given map. Learn how to use the `values` function in Packer templates.
---
# `values` Function

@ -1,8 +1,8 @@
---
page_title: zipmap - Functions - Configuration Language
page_title: zipmap function reference
description: |-
The zipmap function constructs a map from a list of keys and a corresponding
list of values.
The `zipmap` function constructs a map from a list of keys and a corresponding
list of values. Learn how to use the `zipmap` function in Packer templates.
---
# `zipmap` Function

@ -1,8 +1,8 @@
---
page_title: bcrypt - Functions - Configuration Language
page_title: bcrypt function reference
description: |-
The bcrypt function computes a hash of the given string using the Blowfish
cipher.
The `bcrypt` function computes a hash of the given string using the Blowfish
cipher. Learn how to use the `bcrypt` function in Packer templates.
---
# `bcrypt` Function

@ -1,8 +1,8 @@
---
page_title: md5 - Functions - Configuration Language
page_title: md5 function reference
description: |-
The md5 function computes the MD5 hash of a given string and encodes it
with hexadecimal digits.
The `md5` function computes the MD5 hash of a given string and encodes it
with hexadecimal digits. Learn how to use the `md5` function in Packer templates.
---
# `md5` Function

@ -1,6 +1,6 @@
---
page_title: rsadecrypt - Functions - Configuration Language
description: The rsadecrypt function decrypts an RSA-encrypted message.
page_title: rsadecrypt function reference
description: The `rsadecrypt` function decrypts an RSA-encrypted message. Learn how to usethe `rsadecrypt` function in Packer templates.
---
# `rsadecrypt` Function

@ -1,8 +1,8 @@
---
page_title: sha1 - Functions - Configuration Language
page_title: sha1 function reference
description: |-
The sha1 function computes the SHA1 hash of a given string and encodes it
with hexadecimal digits.
The `sha1` function computes the SHA1 hash of a given string and encodes it
with hexadecimal digits. Learn how to use the `sha1` function in Packer templates.
---
# `sha1` Function

@ -1,8 +1,8 @@
---
page_title: sha256 - Functions - Configuration Language
page_title: sha256 function reference
description: |-
The sha256 function computes the SHA256 hash of a given string and encodes it
with hexadecimal digits.
The `sha256` function computes the SHA256 hash of a given string and encodes it
with hexadecimal digits. Learn how to use the `sha256` function in Packer templates.
---
# `sha256` Function

@ -1,8 +1,8 @@
---
page_title: sha512 - Functions - Configuration Language
page_title: sha512 function reference
description: |-
The sha512 function computes the SHA512 hash of a given string and encodes it
with hexadecimal digits.
The `sha512` function computes the SHA512 hash of a given string and encodes it
with hexadecimal digits. Learn how to use the `sha512` function in Packer templates.
---
# `sha512` Function

Loading…
Cancel
Save