数据中心或云的命令行和控制中心。
outbit的Python项目详细描述
外比特
outbit提供了一个简单的ui,用于协调数据中心和云环境中的更改或应用配置。outbit在Ansible之上提供了一个层,允许您轻松地包装自动化任务并提供一种简单的执行方式基于角色的访问控制允许您实现职责分离,并限制特定角色执行的特定操作日志记录功能允许您跟踪环境中更改的历史记录
安装
仅安装outbit客户端这是如果你已经有一个专用的outbit api服务器。
$ pip install outbit
安装outbit api服务器。
$ pip install outbit $ sudo outbit-api-install
使用Docker安装并启动Outbit API服务器。
$ docker pull starboarder2001/outbit $ docker run -d -p 8088:8088 -p 80:80 -p 443:443 starboarder2001/outbit
用法
在本地主机或专用IP上启动API服务器如果您使用Docker容器,那么请确保您已经提取了图像并使用上面的示例运行了图像。
$ outbit-api -s 127.0.0.1 --insecure
登录到outbit shell。第一次登录时,系统将提示您更改默认密码。如果使用Docker容器,则可以删除“–unsecure”标志,因为默认情况下,该标志配置为使用SSL。如果您使用的是有效的ssl证书,而不是自签名证书,那么您还可以删除“--no check certificates”标志。
$ outbit -u superadmin -s 127.0.0.1 --insecure --no-check-certificates
Password: superadmin
Changing Password From Default
Enter New Password: **********
Enter New Password Again: **********
添加打印hello world的“hello world”操作的示例。
outbit> help actions [list|del|edit|add] users [list|del|edit|add] roles [list|del|edit|add] secrets [list|del|edit|add|encryptpw] plugins [list]help[*]jobs[list|status|kill] schedules [add|edit|list|del] inventory [list|del] ping logs help stats exit outbit> actions add name=helloworld category=/hello action=world plugin=commanddesc="print hello world"command_run="echo 'hello world'" outbit> help actions [list|del|edit|add] users [list|del|edit|add] roles [list|del|edit|add] secrets [list|del|edit|add|encryptpw] plugins [list]help[*]jobs[list|status|kill] schedules [add|edit|list|del] inventory [list|del] ping logs help stats hello [world]exit outbit> hello world hello world return code: 0 outbit> exit
许可证
outbit在MIT License下释放。