集群管理的工具的集集合,集群传key工具、服务器电源管理、集群命令注入等工具
➜ ~ vonmgr -h
vonmgr 1.0.0
Usage:
vonmgr [SWITCHES] [SUBCOMMAND [SWITCHES]] args...
Meta-switches:
-h, --help Prints this help message and quits
--help-all Print help messages of all subcommands and quit
-v, --version Prints the program's version and quits
Subcommands:
cmd execute cmd in remote node; see 'vonmgr cmd --help' for more info
count_code count code rows in path; see 'vonmgr count_code --help' for more info
power check/change power status; see 'vonmgr power --help' for more info
add transfer key.pub into remote authorized_keys; see 'vonmgr trans_key --help' for more info目前已经集成了四个工具:
- cmd: 交互式在集群的1~all个节点执行命令
Switches:
-a, --all 处理配置文件中所有的节点
-i, --ip IPS:str 执行命令的节点的一个或多个ip, 使用 "/"分隔
--no-log if not given, print detail
-p, --password PWD:str password
-u, --user USER:str user- power:服务器电源管理工具,详细用法在power工具用法
Switches:
-g if given, get power status
-a --all 处理配置文件中所有的节点
-i IP:str IPMI IP,example: 111(only 10.10.90.111)/10.10.xxx.xxx
-p PWD:str IPMI PASSWORD,default: 123456; requires -u
-s CMD:{'reset', 'on', 'off'} set power on|off|reset; requires -i; excludes -g
-u USER:str IPMI USER,default: ADMIN; requires -i, -p- add:上传key,详细用法在传key工具用法
-a --all 处理配置文件中所有的节点
-i, --ip IPS:str remote ips,use '/' to split
-p, --password PWD:str password
-u, --user USER:str user
- clone repo
- pip install -r requirements.txt
- 更新
bin/vonmgr脚本里的path - cp vonmgr /usr/local/bin
- 增加新工具
- go重写,解决依赖