New in version 2.0.
Allows you to create or remove a volume from a ProfitBricks datacenter. This module has a dependency on profitbricks >= 1.0.0
- profitbricks
parameter | required | default | choices | comments |
---|---|---|---|---|
auto_increment |
no | True |
|
Whether or not to increment a single number in the name for created virtual machines. |
bus |
no | VIRTIO |
|
The bus type. |
count |
no | 1 | The number of volumes you wish to create. | |
datacenter |
yes | The datacenter in which to create the volumes. | ||
disk_type |
no | HDD | The disk type. Currently only HDD. | |
image |
yes | The system image ID for the volume, e.g. a3eae284-a2fe-11e4-b187-5f1f641608c8. This can also be a snapshot image ID. | ||
instance_ids |
no | list of instance ids, currently only used when state='absent' to remove instances. | ||
licence_type |
no | UNKNOWN |
|
The licence type for the volume. This is used when the image is non-standard. |
name |
yes | The name of the volumes. You can enumerate the names using auto_increment. | ||
size |
no | 10 | The size of the volume. | |
state |
no | present |
|
create or terminate datacenters |
subscription_password |
no | THe ProfitBricks password. Overrides the PB_PASSWORD environement variable. | ||
subscription_user |
no | The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environement variable. | ||
wait |
no | yes |
|
wait for the datacenter to be created before returning |
wait_timeout |
no | 600 | how long before wait gives up, in seconds |
# Create Multiple Volumes - profitbricks_volume: datacenter: Tardis One name: vol%02d count: 5 auto_increment: yes wait_timeout: 500 state: present # Remove Volumes - profitbricks_volume: datacenter: Tardis One instance_ids: - 'vol01' - 'vol02' wait_timeout: 500 state: absent
For more information on what this means please read Extras Modules
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.