An ansible module for cloudbridge would be of great use to anyone who needs to provision VMs and other cloud resources using simple yaml templates. The template will express the desired state of the resource.
A cloudbridge ansible module for creating a VM could look like the following:
- name: create a new key_pair
cloudbridge_key_pair:
state: present
provider:
type: gcp
name: my_new_key_pair
Or a disk:
- name: create a new volume
cloudbridge_volume:
state: present
provider:
type: azure
label: my_volume
size: 10
description: my postgres volume
Each module would need to inspect the current state of the object, and drive it towards the desired state. For example, if the vm instance does not exist, it would create it. However, if the vm instance exists but only the label has changed, it would rename it.
It would be best to take a phased approach and implement services incrementally so that multiple people can work on it. The ansible modules could be split as follows:
An ansible module for cloudbridge would be of great use to anyone who needs to provision VMs and other cloud resources using simple yaml templates. The template will express the desired state of the resource.
A cloudbridge ansible module for creating a VM could look like the following:
Similarly, for creating a keypair:
Or a disk:
Each module would need to inspect the current state of the object, and drive it towards the desired state. For example, if the vm instance does not exist, it would create it. However, if the vm instance exists but only the label has changed, it would rename it.
It would be best to take a phased approach and implement services incrementally so that multiple people can work on it. The ansible modules could be split as follows: