cs_service_offering: update params in arg spec and documentation (#54511)
* cs_service_offering: update params in arg spec and documentation * fix documentation formatting errorpull/4420/head
parent
b24a1b3e13
commit
601d20117d
|
@ -18,21 +18,27 @@ description:
|
||||||
- Create and delete service offerings for guest and system VMs.
|
- Create and delete service offerings for guest and system VMs.
|
||||||
- Update display_text of existing service offering.
|
- Update display_text of existing service offering.
|
||||||
short_description: Manages service offerings on Apache CloudStack based clouds.
|
short_description: Manages service offerings on Apache CloudStack based clouds.
|
||||||
version_added: "2.5"
|
version_added: '2.5'
|
||||||
author: "René Moser (@resmo)"
|
author: René Moser (@resmo)
|
||||||
options:
|
options:
|
||||||
bytes_read_rate:
|
disk_bytes_read_rate:
|
||||||
description:
|
description:
|
||||||
- Bytes read rate of the disk offering.
|
- Bytes read rate of the disk offering.
|
||||||
bytes_write_rate:
|
type: int
|
||||||
|
aliases: [ bytes_read_rate ]
|
||||||
|
disk_bytes_write_rate:
|
||||||
description:
|
description:
|
||||||
- Bytes write rate of the disk offering.
|
- Bytes write rate of the disk offering.
|
||||||
|
type: int
|
||||||
|
aliases: [ bytes_write_rate ]
|
||||||
cpu_number:
|
cpu_number:
|
||||||
description:
|
description:
|
||||||
- The number of CPUs of the service offering.
|
- The number of CPUs of the service offering.
|
||||||
|
type: int
|
||||||
cpu_speed:
|
cpu_speed:
|
||||||
description:
|
description:
|
||||||
- The CPU speed of the service offering in MHz.
|
- The CPU speed of the service offering in MHz.
|
||||||
|
type: int
|
||||||
limit_cpu_usage:
|
limit_cpu_usage:
|
||||||
description:
|
description:
|
||||||
- Restrict the CPU usage to committed service offering.
|
- Restrict the CPU usage to committed service offering.
|
||||||
|
@ -40,40 +46,50 @@ options:
|
||||||
deployment_planner:
|
deployment_planner:
|
||||||
description:
|
description:
|
||||||
- The deployment planner heuristics used to deploy a VM of this offering.
|
- The deployment planner heuristics used to deploy a VM of this offering.
|
||||||
- If not set, the value of global config C(vm.deployment.planner) is used.
|
- If not set, the value of global config I(vm.deployment.planner) is used.
|
||||||
|
type: str
|
||||||
display_text:
|
display_text:
|
||||||
description:
|
description:
|
||||||
- Display text of the service offering.
|
- Display text of the service offering.
|
||||||
- If not set, C(name) will be used as C(display_text) while creating.
|
- If not set, I(name) will be used as I(display_text) while creating.
|
||||||
|
type: str
|
||||||
domain:
|
domain:
|
||||||
description:
|
description:
|
||||||
- Domain the service offering is related to.
|
- Domain the service offering is related to.
|
||||||
- Public for all domains and subdomains if not set.
|
- Public for all domains and subdomains if not set.
|
||||||
|
type: str
|
||||||
host_tags:
|
host_tags:
|
||||||
description:
|
description:
|
||||||
- The host tagsfor this service offering.
|
- The host tags for this service offering.
|
||||||
|
type: list
|
||||||
aliases:
|
aliases:
|
||||||
- host_tag
|
- host_tag
|
||||||
hypervisor_snapshot_reserve:
|
hypervisor_snapshot_reserve:
|
||||||
description:
|
description:
|
||||||
- Hypervisor snapshot reserve space as a percent of a volume.
|
- Hypervisor snapshot reserve space as a percent of a volume.
|
||||||
- Only for managed storage using Xen or VMware.
|
- Only for managed storage using Xen or VMware.
|
||||||
disk_iops_customized:
|
type: int
|
||||||
|
is_iops_customized:
|
||||||
description:
|
description:
|
||||||
- Whether compute offering iops is custom or not.
|
- Whether compute offering iops is custom or not.
|
||||||
default: false
|
type: bool
|
||||||
|
aliases: [ disk_iops_customized ]
|
||||||
disk_iops_read_rate:
|
disk_iops_read_rate:
|
||||||
description:
|
description:
|
||||||
- IO requests read rate of the disk offering.
|
- IO requests read rate of the disk offering.
|
||||||
|
type: int
|
||||||
disk_iops_write_rate:
|
disk_iops_write_rate:
|
||||||
description:
|
description:
|
||||||
- IO requests write rate of the disk offering.
|
- IO requests write rate of the disk offering.
|
||||||
|
type: int
|
||||||
disk_iops_max:
|
disk_iops_max:
|
||||||
description:
|
description:
|
||||||
- Max. iops of the compute offering.
|
- Max. iops of the compute offering.
|
||||||
|
type: int
|
||||||
disk_iops_min:
|
disk_iops_min:
|
||||||
description:
|
description:
|
||||||
- Min. iops of the compute offering.
|
- Min. iops of the compute offering.
|
||||||
|
type: int
|
||||||
is_system:
|
is_system:
|
||||||
description:
|
description:
|
||||||
- Whether it is a system VM offering or not.
|
- Whether it is a system VM offering or not.
|
||||||
|
@ -84,18 +100,20 @@ options:
|
||||||
- Whether the virtual machine needs to be volatile or not.
|
- Whether the virtual machine needs to be volatile or not.
|
||||||
- Every reboot of VM the root disk is detached then destroyed and a fresh root disk is created and attached to VM.
|
- Every reboot of VM the root disk is detached then destroyed and a fresh root disk is created and attached to VM.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
|
||||||
memory:
|
memory:
|
||||||
description:
|
description:
|
||||||
- The total memory of the service offering in MB.
|
- The total memory of the service offering in MB.
|
||||||
|
type: int
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Name of the service offering.
|
- Name of the service offering.
|
||||||
|
type: str
|
||||||
required: true
|
required: true
|
||||||
network_rate:
|
network_rate:
|
||||||
description:
|
description:
|
||||||
- Data transfer rate in Mb/s allowed.
|
- Data transfer rate in Mb/s allowed.
|
||||||
- Supported only for non-system offering and system offerings having C(system_vm_type=domainrouter).
|
- Supported only for non-system offering and system offerings having I(system_vm_type=domainrouter).
|
||||||
|
type: int
|
||||||
offer_ha:
|
offer_ha:
|
||||||
description:
|
description:
|
||||||
- Whether HA is set for the service offering.
|
- Whether HA is set for the service offering.
|
||||||
|
@ -104,6 +122,7 @@ options:
|
||||||
provisioning_type:
|
provisioning_type:
|
||||||
description:
|
description:
|
||||||
- Provisioning type used to create volumes.
|
- Provisioning type used to create volumes.
|
||||||
|
type: str
|
||||||
choices:
|
choices:
|
||||||
- thin
|
- thin
|
||||||
- sparse
|
- sparse
|
||||||
|
@ -111,9 +130,12 @@ options:
|
||||||
service_offering_details:
|
service_offering_details:
|
||||||
description:
|
description:
|
||||||
- Details for planner, used to store specific parameters.
|
- Details for planner, used to store specific parameters.
|
||||||
|
- A list of dictionaries having keys C(key) and C(value).
|
||||||
|
type: list
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- State of the service offering.
|
- State of the service offering.
|
||||||
|
type: str
|
||||||
choices:
|
choices:
|
||||||
- present
|
- present
|
||||||
- absent
|
- absent
|
||||||
|
@ -121,13 +143,15 @@ options:
|
||||||
storage_type:
|
storage_type:
|
||||||
description:
|
description:
|
||||||
- The storage type of the service offering.
|
- The storage type of the service offering.
|
||||||
|
type: str
|
||||||
choices:
|
choices:
|
||||||
- local
|
- local
|
||||||
- shared
|
- shared
|
||||||
system_vm_type:
|
system_vm_type:
|
||||||
description:
|
description:
|
||||||
- The system VM type.
|
- The system VM type.
|
||||||
- Required if C(is_system=true).
|
- Required if I(is_system=yes).
|
||||||
|
type: str
|
||||||
choices:
|
choices:
|
||||||
- domainrouter
|
- domainrouter
|
||||||
- consoleproxy
|
- consoleproxy
|
||||||
|
@ -135,6 +159,7 @@ options:
|
||||||
storage_tags:
|
storage_tags:
|
||||||
description:
|
description:
|
||||||
- The storage tags for this service offering.
|
- The storage tags for this service offering.
|
||||||
|
type: list
|
||||||
aliases:
|
aliases:
|
||||||
- storage_tag
|
- storage_tag
|
||||||
extends_documentation_fragment: cloudstack
|
extends_documentation_fragment: cloudstack
|
||||||
|
@ -142,8 +167,7 @@ extends_documentation_fragment: cloudstack
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Create a non-volatile compute service offering with local storage
|
- name: Create a non-volatile compute service offering with local storage
|
||||||
local_action:
|
cs_service_offering:
|
||||||
module: cs_service_offering
|
|
||||||
name: Micro
|
name: Micro
|
||||||
display_text: Micro 512mb 1cpu
|
display_text: Micro 512mb 1cpu
|
||||||
cpu_number: 1
|
cpu_number: 1
|
||||||
|
@ -151,23 +175,10 @@ EXAMPLES = '''
|
||||||
memory: 512
|
memory: 512
|
||||||
host_tags: eco
|
host_tags: eco
|
||||||
storage_type: local
|
storage_type: local
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Create a volatile compute service offering with shared storage
|
- name: Create a volatile compute service offering with shared storage
|
||||||
local_action:
|
cs_service_offering:
|
||||||
module: cs_service_offering
|
|
||||||
name: Tiny
|
|
||||||
display_text: Tiny 1gb 1cpu
|
|
||||||
cpu_number: 1
|
|
||||||
cpu_speed: 2198
|
|
||||||
memory: 1024
|
|
||||||
storage_type: shared
|
|
||||||
is_volatile: true
|
|
||||||
host_tags: eco
|
|
||||||
storage_tags: eco
|
|
||||||
|
|
||||||
- name: Create or update a volatile compute service offering with shared storage
|
|
||||||
local_action:
|
|
||||||
module: cs_service_offering
|
|
||||||
name: Tiny
|
name: Tiny
|
||||||
display_text: Tiny 1gb 1cpu
|
display_text: Tiny 1gb 1cpu
|
||||||
cpu_number: 1
|
cpu_number: 1
|
||||||
|
@ -177,16 +188,29 @@ EXAMPLES = '''
|
||||||
is_volatile: yes
|
is_volatile: yes
|
||||||
host_tags: eco
|
host_tags: eco
|
||||||
storage_tags: eco
|
storage_tags: eco
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
|
- name: Create or update a volatile compute service offering with shared storage
|
||||||
|
cs_service_offering:
|
||||||
|
name: Tiny
|
||||||
|
display_text: Tiny 1gb 1cpu
|
||||||
|
cpu_number: 1
|
||||||
|
cpu_speed: 2198
|
||||||
|
memory: 1024
|
||||||
|
storage_type: shared
|
||||||
|
is_volatile: yes
|
||||||
|
host_tags: eco
|
||||||
|
storage_tags: eco
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Remove a compute service offering
|
- name: Remove a compute service offering
|
||||||
local_action:
|
cs_service_offering:
|
||||||
module: cs_service_offering
|
|
||||||
name: Tiny
|
name: Tiny
|
||||||
state: absent
|
state: absent
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Create or update a system offering for the console proxy
|
- name: Create or update a system offering for the console proxy
|
||||||
local_action:
|
cs_service_offering:
|
||||||
module: cs_service_offering
|
|
||||||
name: System Offering for Console Proxy 2GB
|
name: System Offering for Console Proxy 2GB
|
||||||
display_text: System Offering for Console Proxy 2GB RAM
|
display_text: System Offering for Console Proxy 2GB RAM
|
||||||
is_system: yes
|
is_system: yes
|
||||||
|
@ -196,13 +220,14 @@ EXAMPLES = '''
|
||||||
memory: 2048
|
memory: 2048
|
||||||
storage_type: shared
|
storage_type: shared
|
||||||
storage_tags: perf
|
storage_tags: perf
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Remove a system offering
|
- name: Remove a system offering
|
||||||
local_action:
|
cs_service_offering:
|
||||||
module: cs_service_offering
|
|
||||||
name: System Offering for Console Proxy 2GB
|
name: System Offering for Console Proxy 2GB
|
||||||
is_system: yes
|
is_system: yes
|
||||||
state: absent
|
state: absent
|
||||||
|
delegate_to: localhost
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
@ -493,23 +518,22 @@ def main():
|
||||||
domain=dict(),
|
domain=dict(),
|
||||||
host_tags=dict(type='list', aliases=['host_tag']),
|
host_tags=dict(type='list', aliases=['host_tag']),
|
||||||
hypervisor_snapshot_reserve=dict(type='int'),
|
hypervisor_snapshot_reserve=dict(type='int'),
|
||||||
disk_bytes_read_rate=dict(type='int'),
|
disk_bytes_read_rate=dict(type='int', aliases=['bytes_read_rate']),
|
||||||
disk_bytes_write_rate=dict(type='int'),
|
disk_bytes_write_rate=dict(type='int', aliases=['bytes_write_rate']),
|
||||||
disk_iops_customized=dict(type='bool'),
|
|
||||||
disk_iops_read_rate=dict(type='int'),
|
disk_iops_read_rate=dict(type='int'),
|
||||||
disk_iops_write_rate=dict(type='int'),
|
disk_iops_write_rate=dict(type='int'),
|
||||||
disk_iops_max=dict(type='int'),
|
disk_iops_max=dict(type='int'),
|
||||||
disk_iops_min=dict(type='int'),
|
disk_iops_min=dict(type='int'),
|
||||||
is_system=dict(type='bool', default=False),
|
is_system=dict(type='bool', default=False),
|
||||||
is_volatile=dict(type='bool'),
|
is_volatile=dict(type='bool'),
|
||||||
is_iops_customized=dict(type='bool'),
|
is_iops_customized=dict(type='bool', aliases=['disk_iops_customized']),
|
||||||
memory=dict(type='int'),
|
memory=dict(type='int'),
|
||||||
network_rate=dict(type='int'),
|
network_rate=dict(type='int'),
|
||||||
offer_ha=dict(type='bool'),
|
offer_ha=dict(type='bool'),
|
||||||
provisioning_type=dict(choices=['thin', 'sparse', 'fat']),
|
provisioning_type=dict(choices=['thin', 'sparse', 'fat']),
|
||||||
service_offering_details=dict(type='bool'),
|
service_offering_details=dict(type='list'),
|
||||||
storage_type=dict(choice=['local', 'shared']),
|
storage_type=dict(choices=['local', 'shared']),
|
||||||
system_vm_type=dict(choice=['domainrouter', 'consoleproxy', 'secondarystoragevm']),
|
system_vm_type=dict(choices=['domainrouter', 'consoleproxy', 'secondarystoragevm']),
|
||||||
storage_tags=dict(type='list', aliases=['storage_tag']),
|
storage_tags=dict(type='list', aliases=['storage_tag']),
|
||||||
state=dict(choices=['present', 'absent'], default='present'),
|
state=dict(choices=['present', 'absent'], default='present'),
|
||||||
))
|
))
|
||||||
|
|
|
@ -96,9 +96,6 @@ lib/ansible/modules/cloud/centurylink/clc_firewall_policy.py E335
|
||||||
lib/ansible/modules/cloud/centurylink/clc_server_snapshot.py E335
|
lib/ansible/modules/cloud/centurylink/clc_server_snapshot.py E335
|
||||||
lib/ansible/modules/cloud/cloudstack/cs_cluster.py E326
|
lib/ansible/modules/cloud/cloudstack/cs_cluster.py E326
|
||||||
lib/ansible/modules/cloud/cloudstack/cs_host.py E326
|
lib/ansible/modules/cloud/cloudstack/cs_host.py E326
|
||||||
lib/ansible/modules/cloud/cloudstack/cs_service_offering.py E322
|
|
||||||
lib/ansible/modules/cloud/cloudstack/cs_service_offering.py E323
|
|
||||||
lib/ansible/modules/cloud/cloudstack/cs_service_offering.py E326
|
|
||||||
lib/ansible/modules/cloud/cloudstack/cs_storage_pool.py E322
|
lib/ansible/modules/cloud/cloudstack/cs_storage_pool.py E322
|
||||||
lib/ansible/modules/cloud/cloudstack/cs_storage_pool.py E326
|
lib/ansible/modules/cloud/cloudstack/cs_storage_pool.py E326
|
||||||
lib/ansible/modules/cloud/cloudstack/cs_volume.py E322
|
lib/ansible/modules/cloud/cloudstack/cs_volume.py E322
|
||||||
|
|
Loading…
Reference in New Issue