Ansible modules for the mist.io service
Project description
mist.ansible
============
Ansible module for mist.io service
Installation
============
```
pip install mist.ansible
```
Simple Example of Provisioning
==============================
```
---
- name: Provisioning playbook for digitalocean
hosts: localhost
tasks:
- name: nephoscale is present
mist_backends:
mist_email: yourmist@account.com
mist_password: yourmistpassword
provider: digitalocean
state: present
backend_key: digital_client_id
backend_secret: digital_secret_key
name: DigitalBackend
- name: Create Machine
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
```
Full Example Playbook
=====================
```
---
- name: Provisioning playbook for nephoscale
hosts: localhost
tasks:
- name: Ensure NephoScale backend is present
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: Generate Key and save locally
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: Search for Ubuntu images
mist_images:
mist_email: yourmist@account.com
mist_password: yourmistpassword
backend: Nepho
search_term: Ubuntu
register: images
- name: List available sizes
mist_sizes:
mist_email: yourmist@account.com
mist_password: yourmistpassword
backend: Nepho
register: sizes
- name: List available locations
mist_locations:
mist_email: yourmist@account.com
mist_password: yourmistpassword
backend: Nepho
register: locations
- name: Create Machine
mist:
mist_email: yourmist@account.com
mist_password: yourmistpassword
backend: Nepho
key: NephoKey
location_id: "{{ locations['locations'][0]['id'] }}"
size_id: "{{ sizes['sizes'][0]['id'] }}"
image_id: "{{ images['images'][0]['id'] }}"
name: nephomachine
```
============
Ansible module for mist.io service
Installation
============
```
pip install mist.ansible
```
Simple Example of Provisioning
==============================
```
---
- name: Provisioning playbook for digitalocean
hosts: localhost
tasks:
- name: nephoscale is present
mist_backends:
mist_email: yourmist@account.com
mist_password: yourmistpassword
provider: digitalocean
state: present
backend_key: digital_client_id
backend_secret: digital_secret_key
name: DigitalBackend
- name: Create Machine
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
```
Full Example Playbook
=====================
```
---
- name: Provisioning playbook for nephoscale
hosts: localhost
tasks:
- name: Ensure NephoScale backend is present
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: Generate Key and save locally
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: Search for Ubuntu images
mist_images:
mist_email: yourmist@account.com
mist_password: yourmistpassword
backend: Nepho
search_term: Ubuntu
register: images
- name: List available sizes
mist_sizes:
mist_email: yourmist@account.com
mist_password: yourmistpassword
backend: Nepho
register: sizes
- name: List available locations
mist_locations:
mist_email: yourmist@account.com
mist_password: yourmistpassword
backend: Nepho
register: locations
- name: Create Machine
mist:
mist_email: yourmist@account.com
mist_password: yourmistpassword
backend: Nepho
key: NephoKey
location_id: "{{ locations['locations'][0]['id'] }}"
size_id: "{{ sizes['sizes'][0]['id'] }}"
image_id: "{{ images['images'][0]['id'] }}"
name: nephomachine
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mist.ansible-0.0.3.tar.gz
(6.4 kB
view details)
File details
Details for the file mist.ansible-0.0.3.tar.gz
.
File metadata
- Download URL: mist.ansible-0.0.3.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05cecebeb4f9aa3d475bac4087519ea43ea3e9a68f412a3647a7242536495c2d |
|
MD5 | 2444638316b87fc1c0e9035af8a72a75 |
|
BLAKE2b-256 | d63f41b895d5f2cbc6f1271850b1f4db5ddeb85c403bc60830f50f136d223759 |