数据中心或云的命令行和控制中心。
outbit-cli的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 starboarder2001/outbit
用法
在本地主机或专用IP上启动API服务器。如果您使用Docker容器,那么请确保您已经提取了图像并使用上面的示例运行了图像。
$ outbit-api -s 127.0.0.1 --insecure
登录到outbit shell。第一次登录时,系统将提示您更改默认密码。如果使用Docker容器,则可以删除“–unsecure”标志,因为默认情况下,该标志配置为使用SSL。
$ 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 list actions actions del del actions actions edit edit actions actions add add actions users list list users users del del users users edit edit users users add add users roles list list roles roles del del roles roles edit edit roles roles add add roles secrets list list secrets secrets del del secrets secrets edit edit secrets secrets add add secrets secrets encryptpw Change password encryption plugins list list plugins ping verify connectivity logs show the history log help print usage jobs list list jobsjobs status get status of job jobskillkill a job schedules add add schedule schedules edit edit schedule schedules list list schedules schedules del del schedule inventory list list inventory inventory del del inventory item exit outbit> actions add name=helloworld category=/hello action=world plugin=commanddesc="print hello world"command_run="echo 'hello world'" outbit> help actions list list actions actions del del actions actions edit edit actions actions add add actions users list list users users del del users users edit edit users users add add users roles list list roles roles del del roles roles edit edit roles roles add add roles secrets list list secrets secrets del del secrets secrets edit edit secrets secrets add add secrets secrets encryptpw Change password encryption plugins list list plugins ping verify connectivity logs show the history log help print usage jobs list list jobsjobs status get status of job jobskillkill a job schedules add add schedule schedules edit edit schedule schedules list list schedules schedules del del schedule inventory list list inventory inventory del del inventory item hello world print hello world exit outbit> hello world hello world return code: 0 outbit> exit
许可证
outbit是根据mit许可证发布的