管理redbridge云的命令行工具
rbc-tools的Python项目详细描述
rbc工具是用于管理redbridge cloud<;https://cloud.redbridge.se/>;的命令行工具。
使用rbc工具,您可以管理rbc中的实例、网络和其他计算资源。
这些工具目前只在MacOSX和Linux上测试,但也应该在Cygwin环境中的Windows上工作。
这些工具处于早期测试阶段,因此请将任何错误报告给support@redbridge.se或作为github<;https://github.com/redbridge/rbc tools/issues>;
开始
在redbridge portal<;https://portal.redbridge.se/account/signup/>;
从门户中的帐户页获取访问密钥和密钥。
创建~/.rbc/rbc.cfg文件(在终端中):
mkdir -p ~/.rbc cat > ~/.rbc/rbc.cfg <<EOF [main] apikey = <your api key as found in the Portal> secretkey = <your secret key as found in the Portal> endpoint = api.rbcloud.net EOF
使用PIP安装RBC工具(或简易安装)
现在您应该可以访问多个命令行脚本,其前缀是rbc-*
请注意,您还可以使用环境变量设置API密钥和密钥:
export RBC_APIKEY=XXXXX; export RBC_SECRETKEY=XXXX
示例
创建ssh密钥对:
rbc-sshkeys generate my-keypair > ~/.ssh/my-keypair_id_rsa
要在redbridge云中部署3个小实例,请使用ssh密钥:
rbc-instances deploy -i 3 -g test -t rbc/ubuntu-14.04-server-cloudimg-amd64-20GB-201461111 -o small -w default -s my-keypair my-instances
0.3.3(2015-05-04)
- 向RBC工具添加一个ansible库存
0.3.2(2015-04-02)
- 如果命令超时,请不要在network create上失败。
0.3.0(2015-02-10)
- 使用POST作为实例,这样就可以使用多达32K的用户数据
0.1.18(2014-08-07)
- 使用vpc时修复断开的网络列表
0.1.17(2014-07-31)
- 第一个pypi版本
0.1.0(2014-07-31)
- 初次发布。
学分
“RBC工具”由Redbridge AB编写和维护。
贡献者
- cldmnky<;https://github.com/cldmnky>;
- eal<;https://github.com/eal>;
当您提交第一个请求时,请按字母顺序添加您自己。