Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat]curveadm: add install tool command #332

Closed
wants to merge 6 commits into from

Conversation

0fatal
Copy link

@0fatal 0fatal commented Nov 6, 2023

@caoxianfei1
Copy link
Contributor

@0fatal Please push it to develop not tombstone

@caoxianfei1
Copy link
Contributor

@0fatal Pls commit it to develop branch again.

@caoxianfei1 caoxianfei1 self-requested a review December 5, 2023 01:57
dcs []*topology.DeployConfig,
options installOptions,
) (*playbook.Playbook, error) {
configs := curveadm.FilterDeployConfig(dcs, topology.FilterOption{Id: "*", Role: topology.ROLE_MDS, Host: options.host})[:1]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any one service container is ok on the host. ROLE_MDS is not necessary.

flags := cmd.Flags()
flags.StringVar(&options.host, "host", "localhost", "Specify target host")
flags.StringVar(&options.path, "path", "/usr/local/bin/curve", "Specify target install path of tool v2")
flags.StringVar(&options.confPath, "confPath", "~/.curve/curve.yaml", "Specify target config path of tool v2")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The defaule value of confPath is /etc/curve/curve.yaml

@caoxianfei1
Copy link
Contributor

@0fatal I'm going to close it because this is the old PR and the new one has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants