Skip to content

Commit

Permalink
Added hostkey field to hostswithclass
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Moene <victor.moene@northern.tech>
  • Loading branch information
victormlg committed Jan 31, 2025
1 parent ab1bc57 commit 12e8197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reference/functions/hostswithclass.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ published: true
`field` of hosts on which `classs` is set.

On CFEngine Enterprise, this function can be used to return a list of
hostnames or ip-addresses of hosts that have a given class.
hostnames, ip-addresses or public key shas of hosts that have a given class.

**Note:** This function only works locally on the hub, but allows the hub to construct custom
configuration files for (classes of) hosts. Hosts are selected based on the
classes set during the most recently collected agent run.

[%CFEngine_function_attributes(class, field)%]
[%CFEngine_function_attributes(class, field, hostkey)%]

**Example:**

Expand Down

0 comments on commit 12e8197

Please sign in to comment.