-
Notifications
You must be signed in to change notification settings - Fork 72
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
Conversation
34b3519
to
4fa3c91
Compare
24dbca0
to
565d236
Compare
@0fatal Pls commit it to develop branch again. |
ad1e33d
to
fbcf0b2
Compare
dd5b1ec
to
31c2793
Compare
Signed-off-by: 0fatal <[email protected]>
Signed-off-by: 0fatal <[email protected]>
Signed-off-by: 0fatal <[email protected]>
Signed-off-by: 0fatal <[email protected]>
Signed-off-by: 0fatal <[email protected]>
Signed-off-by: 0fatal <[email protected]>
a35839c
to
f1f540a
Compare
dcs []*topology.DeployConfig, | ||
options installOptions, | ||
) (*playbook.Playbook, error) { | ||
configs := curveadm.FilterDeployConfig(dcs, topology.FilterOption{Id: "*", Role: topology.ROLE_MDS, Host: options.host})[:1] |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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
@0fatal I'm going to close it because this is the old PR and the new one has been merged. |
#325