Skip to content

Commit

Permalink
Merge pull request #3387 from victormlg/hostswithclass-hostkey
Browse files Browse the repository at this point in the history
Added hostkey field to hostswithclass
  • Loading branch information
olehermanse authored Feb 6, 2025
2 parents 74a6e05 + 2426c3e commit 36737f5
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 36737f5

Please sign in to comment.