跳转到主要内容

mist.io服务的Ansible模块

项目描述

mist.ansible
============

mist.io服务的Ansible模块

安装
============
```
pip install mist.ansible

```


配置示例
==============================
```
---
- name: digitalocean的配置剧本
hosts: localhost
tasks
- name: 确保DigitalOcean后端存在
mist_backends
mist_email: yourmist@account.com
mist_password: yourmistpassword
provider: digitalocean
state: present
backend_secret: digital_secret_key
name: DigitalBackend
- name: 创建机器
mist
mist_email: yourmist@account.com
mist_password: yourmistpassword
backend: DigitalBackend
key: UploadedKey
location_id: id_of_chosen_location
size_id: id_of_machine_size
image_id: id_of_image
name: digimachine
```

完整剧本示例
=====================
```
---
- name: nephoscale的配置剧本
hosts: localhost
tasks
- name: 确保NephoScale后端存在
mist_backends
mist_email: yourmist@account.com
mist_password: yourmistpassword
provider: nephoscale
state: present
backend_key: nepho_username
backend_secret: nepho_password
name: Nepho
- name: 生成密钥并保存到本地
mist_keys
mist_email: yourmist@account.com
mist_password: yourmistpassword
name: NephoKey
auto_generate: true
save_locally: true
local_save_path: /home/user/.ssh/NephoKey
- name: 搜索Ubuntu镜像
mist_images
mist_email: yourmist@account.com
mist_password: yourmistpassword
后端:Nepho
搜索词:Ubuntu
注册:图片
- 名称:列出可用大小
mist_sizes
mist_email: yourmist@account.com
mist_password: yourmistpassword
后端:Nepho
注册:大小
- 名称:列出可用位置
mist_locations
mist_email: yourmist@account.com
mist_password: yourmistpassword
后端:Nepho
注册:位置
- name: 创建机器
mist
mist_email: yourmist@account.com
mist_password: yourmistpassword
后端:Nepho
密钥:NephoKey
位置ID: "{{ locations['locations'][0]['id'] }}"
大小ID: "{{ sizes['sizes'][0]['id'] }}"
图片ID: "{{ images['images'][0]['id'] }}"
名称:nephomachine
```

项目详情


下载文件

下载您平台上的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源代码分发

mist.ansible-0.1.8.tar.gz (9.3 kB 查看哈希)

上传时间

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面