Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added hostkey field to hostswithclass #3387

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
olehermanse marked this conversation as resolved.
Show resolved Hide resolved

**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