How to execute a command on specified host before deploying?
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 466
- Forks
- 338
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 8
Description
General Question
I notice that tiup cluster exec only accepts a cluster name. But if the cluster has not been deployed, how to execute the command? When using tidb-ansible, the command can be executed as long as there is an inventory file. And the demand is practical. For example, one may want to shutdown firewalls on all machine before deployment, otherwise deployment will always fail.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the tiup cluster exec command entry point and compare its cluster-name requirement with the inventory-based behavior described for tidb-ansible. Define how commands should target specified hosts before deployment, including the input and completion behavior, then verify the design against the firewall example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, go
- Domain
- cli, devops
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100