From 44084a83a4377720a9d23d0c5ce35a6d4ad57517 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sat, 9 Feb 2013 10:47:52 -0500 Subject: [PATCH] Document :& host notation and using variables with hosts --- docsite/rst/patterns.rst | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docsite/rst/patterns.rst b/docsite/rst/patterns.rst index 98f9ef8532..d041562f5e 100644 --- a/docsite/rst/patterns.rst +++ b/docsite/rst/patterns.rst @@ -48,7 +48,7 @@ Adding a lot of hosts? In 0.6 and later, if you have a lot of hosts following s [webservers] www[01:50].example.com - + In 1.0 and later, you can also do this for alphabetic ranges:: @@ -95,6 +95,18 @@ You can exclude groups as well, for instance, all webservers not in Phoenix:: webservers:!phoenix +You can also specify the intersection of two groups:: + + webservers:&staging + +You can do combinations:: + + webservers:dbservers:!phoenix:&staging + +You can also use variables:: + + webservers:!$excluded:&$required + Individual host names (or IPs), but not groups, can also be referenced using wildcards::