cloudstack: add choices for api_http_method
This commit is contained in:
parent
2ca6d151b2
commit
b30fda4906
11 changed files with 11 additions and 31 deletions
|
@ -108,7 +108,6 @@ local_action:
|
|||
email: john.doe@example.com
|
||||
domain: CUSTOMERS
|
||||
|
||||
|
||||
# Lock an existing account in domain 'CUSTOMERS'
|
||||
local_action:
|
||||
module: cs_account
|
||||
|
@ -116,7 +115,6 @@ local_action:
|
|||
domain: CUSTOMERS
|
||||
state: locked
|
||||
|
||||
|
||||
# Disable an existing account in domain 'CUSTOMERS'
|
||||
local_action:
|
||||
module: cs_account
|
||||
|
@ -124,7 +122,6 @@ local_action:
|
|||
domain: CUSTOMERS
|
||||
state: disabled
|
||||
|
||||
|
||||
# Enable an existing account in domain 'CUSTOMERS'
|
||||
local_action:
|
||||
module: cs_account
|
||||
|
@ -132,7 +129,6 @@ local_action:
|
|||
domain: CUSTOMERS
|
||||
state: enabled
|
||||
|
||||
|
||||
# Remove an account in domain 'CUSTOMERS'
|
||||
local_action:
|
||||
module: cs_account
|
||||
|
@ -367,7 +363,7 @@ def main():
|
|||
api_key = dict(default=None),
|
||||
api_secret = dict(default=None, no_log=True),
|
||||
api_url = dict(default=None),
|
||||
api_http_method = dict(default='get'),
|
||||
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||
api_timeout = dict(type='int', default=10),
|
||||
),
|
||||
required_together = (
|
||||
|
|
|
@ -71,7 +71,6 @@ EXAMPLES = '''
|
|||
name: haproxy
|
||||
affinty_type: host anti-affinity
|
||||
|
||||
|
||||
# Remove a affinity group
|
||||
- local_action:
|
||||
module: cs_affinitygroup
|
||||
|
@ -220,7 +219,7 @@ def main():
|
|||
api_key = dict(default=None),
|
||||
api_secret = dict(default=None, no_log=True),
|
||||
api_url = dict(default=None),
|
||||
api_http_method = dict(default='get'),
|
||||
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||
api_timeout = dict(type='int', default=10),
|
||||
),
|
||||
required_together = (
|
||||
|
|
|
@ -114,7 +114,6 @@ EXAMPLES = '''
|
|||
port: 80
|
||||
cidr: 1.2.3.4/32
|
||||
|
||||
|
||||
# Allow inbound tcp/udp port 53 to 4.3.2.1
|
||||
- local_action:
|
||||
module: cs_firewall
|
||||
|
@ -125,7 +124,6 @@ EXAMPLES = '''
|
|||
- tcp
|
||||
- udp
|
||||
|
||||
|
||||
# Ensure firewall rule is removed
|
||||
- local_action:
|
||||
module: cs_firewall
|
||||
|
@ -135,7 +133,6 @@ EXAMPLES = '''
|
|||
cidr: 17.0.0.0/8
|
||||
state: absent
|
||||
|
||||
|
||||
# Allow all outbound traffic
|
||||
- local_action:
|
||||
module: cs_firewall
|
||||
|
@ -143,7 +140,6 @@ EXAMPLES = '''
|
|||
type: egress
|
||||
protocol: all
|
||||
|
||||
|
||||
# Allow only HTTP outbound traffic for an IP
|
||||
- local_action:
|
||||
module: cs_firewall
|
||||
|
@ -419,7 +415,7 @@ def main():
|
|||
api_key = dict(default=None),
|
||||
api_secret = dict(default=None, no_log=True),
|
||||
api_url = dict(default=None),
|
||||
api_http_method = dict(default='get'),
|
||||
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||
api_timeout = dict(type='int', default=10),
|
||||
),
|
||||
required_one_of = (
|
||||
|
|
|
@ -800,7 +800,7 @@ def main():
|
|||
api_key = dict(default=None),
|
||||
api_secret = dict(default=None, no_log=True),
|
||||
api_url = dict(default=None),
|
||||
api_http_method = dict(default='get'),
|
||||
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||
api_timeout = dict(type='int', default=10),
|
||||
),
|
||||
required_together = (
|
||||
|
|
|
@ -61,7 +61,6 @@ EXAMPLES = '''
|
|||
module: cs_instancegroup
|
||||
name: loadbalancers
|
||||
|
||||
|
||||
# Remove an instance group
|
||||
- local_action:
|
||||
module: cs_instancegroup
|
||||
|
@ -198,7 +197,7 @@ def main():
|
|||
api_key = dict(default=None),
|
||||
api_secret = dict(default=None, no_log=True),
|
||||
api_url = dict(default=None),
|
||||
api_http_method = dict(default='get'),
|
||||
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||
api_timeout = dict(type='int', default=10),
|
||||
),
|
||||
required_together = (
|
||||
|
|
|
@ -115,7 +115,6 @@ EXAMPLES = '''
|
|||
url: http://mirror.switch.ch/ftp/mirror/debian-cd/current/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso
|
||||
os_type: Debian GNU/Linux 7(64-bit)
|
||||
|
||||
|
||||
# Register an ISO with given name if ISO md5 checksum does not already exist.
|
||||
- local_action:
|
||||
module: cs_iso
|
||||
|
@ -124,14 +123,12 @@ EXAMPLES = '''
|
|||
os_type:
|
||||
checksum: 0b31bccccb048d20b551f70830bb7ad0
|
||||
|
||||
|
||||
# Remove an ISO by name
|
||||
- local_action:
|
||||
module: cs_iso
|
||||
name: Debian 7 64-bit
|
||||
state: absent
|
||||
|
||||
|
||||
# Remove an ISO by checksum
|
||||
- local_action:
|
||||
module: cs_iso
|
||||
|
@ -330,7 +327,7 @@ def main():
|
|||
api_key = dict(default=None),
|
||||
api_secret = dict(default=None, no_log=True),
|
||||
api_url = dict(default=None),
|
||||
api_http_method = dict(default='get'),
|
||||
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||
api_timeout = dict(type='int', default=10),
|
||||
),
|
||||
required_together = (
|
||||
|
|
|
@ -402,7 +402,7 @@ def main():
|
|||
api_key = dict(default=None),
|
||||
api_secret = dict(default=None, no_log=True),
|
||||
api_url = dict(default=None),
|
||||
api_http_method = dict(default='get'),
|
||||
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||
api_timeout = dict(type='int', default=10),
|
||||
),
|
||||
required_together = (
|
||||
|
|
|
@ -55,7 +55,6 @@ EXAMPLES = '''
|
|||
name: default
|
||||
description: default security group
|
||||
|
||||
|
||||
# Remove a security group
|
||||
- local_action:
|
||||
module: cs_securitygroup
|
||||
|
@ -163,7 +162,7 @@ def main():
|
|||
api_key = dict(default=None),
|
||||
api_secret = dict(default=None, no_log=True),
|
||||
api_url = dict(default=None),
|
||||
api_http_method = dict(default='get'),
|
||||
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||
api_timeout = dict(type='int', default=10),
|
||||
),
|
||||
required_together = (
|
||||
|
|
|
@ -101,7 +101,6 @@ EXAMPLES = '''
|
|||
port: 80
|
||||
cidr: 1.2.3.4/32
|
||||
|
||||
|
||||
# Allow tcp/udp outbound added to security group 'default'
|
||||
- local_action:
|
||||
module: cs_securitygroup_rule
|
||||
|
@ -114,7 +113,6 @@ EXAMPLES = '''
|
|||
- tcp
|
||||
- udp
|
||||
|
||||
|
||||
# Allow inbound icmp from 0.0.0.0/0 added to security group 'default'
|
||||
- local_action:
|
||||
module: cs_securitygroup_rule
|
||||
|
@ -123,7 +121,6 @@ EXAMPLES = '''
|
|||
icmp_code: -1
|
||||
icmp_type: -1
|
||||
|
||||
|
||||
# Remove rule inbound port 80/tcp from 0.0.0.0/0 from security group 'default'
|
||||
- local_action:
|
||||
module: cs_securitygroup_rule
|
||||
|
@ -131,7 +128,6 @@ EXAMPLES = '''
|
|||
port: 80
|
||||
state: absent
|
||||
|
||||
|
||||
# Allow inbound port 80/tcp from security group web added to security group 'default'
|
||||
- local_action:
|
||||
module: cs_securitygroup_rule
|
||||
|
@ -399,7 +395,7 @@ def main():
|
|||
api_key = dict(default=None),
|
||||
api_secret = dict(default=None, no_log=True),
|
||||
api_url = dict(default=None),
|
||||
api_http_method = dict(default='get'),
|
||||
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||
api_timeout = dict(type='int', default=10),
|
||||
),
|
||||
required_together = (
|
||||
|
|
|
@ -217,7 +217,7 @@ def main():
|
|||
api_key = dict(default=None),
|
||||
api_secret = dict(default=None, no_log=True),
|
||||
api_url = dict(default=None),
|
||||
api_http_method = dict(default='get'),
|
||||
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||
api_timeout = dict(type='int', default=10),
|
||||
),
|
||||
required_together = (
|
||||
|
|
|
@ -87,7 +87,6 @@ EXAMPLES = '''
|
|||
vm: web-01
|
||||
snapshot_memory: yes
|
||||
|
||||
|
||||
# Revert a VM to a snapshot after a failed upgrade
|
||||
- local_action:
|
||||
module: cs_vmsnapshot
|
||||
|
@ -95,7 +94,6 @@ EXAMPLES = '''
|
|||
vm: web-01
|
||||
state: revert
|
||||
|
||||
|
||||
# Remove a VM snapshot after successful upgrade
|
||||
- local_action:
|
||||
module: cs_vmsnapshot
|
||||
|
@ -289,7 +287,7 @@ def main():
|
|||
api_key = dict(default=None),
|
||||
api_secret = dict(default=None, no_log=True),
|
||||
api_url = dict(default=None),
|
||||
api_http_method = dict(default='get'),
|
||||
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||
api_timeout = dict(type='int', default=10),
|
||||
),
|
||||
required_together = (
|
||||
|
|
Loading…
Reference in a new issue