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

Add example for sequences in discovery #477

Merged
merged 1 commit into from Apr 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -22,8 +22,8 @@ For example: `cpu_count > 8`.
. From the *Host Group* list, select the host group to use as a template for this host.
. In the *Hostname* field, enter the pattern to determine host names for multiple hosts.
This uses the same ERB syntax that provisioning templates use.
The host name can use the `@host` attribute for host-specific values and the `rand` function for a random number.
For more information about provisioning templates, see xref:provisioning-templates_provisioning[].
The host name can use the `@host` attribute for host-specific values and the `rand` macro for a random number or the `sequence_hostgroup_param_next` macro for incrementing the value.
For more information about provisioning templates, see xref:provisioning-templates_provisioning[] and the API documentation.
+
* `myhost-<%= sequence_hostgroup_param_next("EL7/MyHostgroup", 10, "discovery_host") %>`
* `myhost-<%= rand(99999) %>`
Expand Down