Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5fa007f + f2fc656 commit ad498b6Copy full SHA for ad498b6
README.md
@@ -37,6 +37,20 @@ And execute against an environment and set of hosts like so:
37
$ fab preview class:frontend do:'uname -a'
38
...
39
40
+### Targetting groups of machines
41
+
42
+Fabric tasks can be run on groups of machines in a variety of different ways.
43
44
+by puppet class
45
46
+ # target all machines that have the 'govuk::safe_to_reboot::yes' class
47
+ $ fab preview puppet_class:govuk::safe_to_reboot::yes do:'uname -a'
48
49
+by numeric machine suffix
50
51
+ # target all machines that end in '2'
52
+ $ fab preview numbered:2 do:'uname -a'
53
54
## Remote usage (legacy)
55
56
It was previously possible to use these scripts from the jumpboxes via the
0 commit comments