cloudstack: update doc of cs_portforward, fixes typos.
This commit is contained in:
parent
a425c413be
commit
506b4c4672
1 changed files with 8 additions and 11 deletions
|
@ -92,12 +92,13 @@ options:
|
||||||
default: null
|
default: null
|
||||||
project:
|
project:
|
||||||
description:
|
description:
|
||||||
- Name of the project the c(vm) is located in.
|
- Name of the project the C(vm) is located in.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
zone:
|
zone:
|
||||||
description:
|
description:
|
||||||
- Name of the zone in which the virtual machine is in. If not set, default zone is used.
|
- Name of the zone in which the virtual machine is in.
|
||||||
|
- If not set, default zone is used.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
poll_async:
|
poll_async:
|
||||||
|
@ -117,7 +118,6 @@ EXAMPLES = '''
|
||||||
public_port: 80
|
public_port: 80
|
||||||
private_port: 8080
|
private_port: 8080
|
||||||
|
|
||||||
|
|
||||||
# forward SSH and open firewall
|
# forward SSH and open firewall
|
||||||
- local_action:
|
- local_action:
|
||||||
module: cs_portforward
|
module: cs_portforward
|
||||||
|
@ -127,7 +127,6 @@ EXAMPLES = '''
|
||||||
private_port: 22
|
private_port: 22
|
||||||
open_firewall: true
|
open_firewall: true
|
||||||
|
|
||||||
|
|
||||||
# forward DNS traffic, but do not open firewall
|
# forward DNS traffic, but do not open firewall
|
||||||
- local_action:
|
- local_action:
|
||||||
module: cs_portforward
|
module: cs_portforward
|
||||||
|
@ -138,7 +137,6 @@ EXAMPLES = '''
|
||||||
protocol: udp
|
protocol: udp
|
||||||
open_firewall: true
|
open_firewall: true
|
||||||
|
|
||||||
|
|
||||||
# remove ssh port forwarding
|
# remove ssh port forwarding
|
||||||
- local_action:
|
- local_action:
|
||||||
module: cs_portforward
|
module: cs_portforward
|
||||||
|
@ -161,26 +159,26 @@ protocol:
|
||||||
type: string
|
type: string
|
||||||
sample: tcp
|
sample: tcp
|
||||||
private_port:
|
private_port:
|
||||||
description: Private start port.
|
description: Start port on the virtual machine's IP address.
|
||||||
returned: success
|
returned: success
|
||||||
type: int
|
type: int
|
||||||
sample: 80
|
sample: 80
|
||||||
private_end_port:
|
private_end_port:
|
||||||
description: Private end port.
|
description: End port on the virtual machine's IP address.
|
||||||
returned: success
|
returned: success
|
||||||
type: int
|
type: int
|
||||||
public_port:
|
public_port:
|
||||||
description: Public start port.
|
description: Start port on the public IP address.
|
||||||
returned: success
|
returned: success
|
||||||
type: int
|
type: int
|
||||||
sample: 80
|
sample: 80
|
||||||
public_end_port:
|
public_end_port:
|
||||||
description: Public end port.
|
description: End port on the public IP address.
|
||||||
returned: success
|
returned: success
|
||||||
type: int
|
type: int
|
||||||
sample: 80
|
sample: 80
|
||||||
tags:
|
tags:
|
||||||
description: Tag srelated to the port forwarding.
|
description: Tags related to the port forwarding.
|
||||||
returned: success
|
returned: success
|
||||||
type: list
|
type: list
|
||||||
sample: []
|
sample: []
|
||||||
|
@ -201,7 +199,6 @@ vm_guest_ip:
|
||||||
sample: 10.101.65.152
|
sample: 10.101.65.152
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from cs import CloudStack, CloudStackException, read_config
|
from cs import CloudStack, CloudStackException, read_config
|
||||||
has_lib_cs = True
|
has_lib_cs = True
|
||||||
|
|
Loading…
Reference in a new issue