Specify numeric range can contain a stride (#68952)

Updated the range creation example to show that you can also specify a stride value when creating a hostname by numeric range.
This commit is contained in:
Allen 2020-06-16 09:31:00 -07:00 committed by GitHub
parent c2eb1eadb2
commit fb9740db4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,6 +169,24 @@ In YAML:
webservers:
hosts:
www[01:50].example.com:
You can specify a stride (increments between sequence numbers) when defining a numeric range of hosts:
In INI:
.. code-block:: text
[webservers]
www[01:50:2].example.com
In YAML:
.. code-block:: yaml
...
webservers:
hosts:
www[01:50:2].example.com:
For numeric patterns, leading zeros can be included or removed, as desired. Ranges are inclusive. You can also define alphabetic ranges: