pingcap / pingcap/tiup

How to execute a command on specified host before deploying?

Open
#143 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

category/usability type/feature-request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.