forked fromalphagov/fabric-scripts
- Notifications
You must be signed in to change notification settings - Fork0
Commit20bbbfb
committed
[#43121095] Add puppet.loadhosts task
Loads hosts that use given Puppet class(es). This differs from the `class` taskwhich only returns nodes of a given "role". It uses the functionality addedto `govuk_node_list` in:https://github.gds/gds/puppet/commit/d986313df235af0ac225f8e7f3e5838574a3dec0For example, to run a command on machines that include the `redis` and`govuk::apps::govuk_crawler_worker` hosts. Note there is `logs-redis-N` inaddition to `redis-N`: (fabric)➜ fabric-scripts git:(puppet_loadhosts_by_classes) fab --hide=running,status preview puppet.loadhosts:redis,govuk::apps::govuk_crawler_worker hosts logs-redis-1.management.production logs-redis-2.management.production mirrorer-1.management.production redis-1.backend.production redis-2.backend.production1 parent3831dba commit20bbbfb
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
3 | 11 | | |
4 | 12 | | |
5 | 13 | | |
| |||
0 commit comments
Comments
(0)