Skip to content

Commit 43ec879

Browse files
authored
cs_portforward: doc: Add some clarifications for VPC tiers (#36)
1 parent 8326b8f commit 43ec879

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

plugins/modules/cs_portforward.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
open_firewall:
6363
description:
6464
- Whether the firewall rule for public port should be created, while creating the new rule.
65+
- Not supported when forwarding ports in a VPC.
6566
- Use M(cs_firewall) for managing firewall rules.
6667
default: no
6768
type: bool
@@ -71,7 +72,7 @@
7172
type: str
7273
network:
7374
description:
74-
- Name of the network.
75+
- Name of the network. Required when forwarding ports in a VPC.
7576
type: str
7677
vpc:
7778
description:
@@ -140,6 +141,15 @@
140141
public_port: 22
141142
private_port: 22
142143
state: absent
144+
145+
- name: forward SSH in backend tier of VPC
146+
ngine_io.cloudstack.cs_portforward:
147+
ip_address: '{{ public_ip }}'
148+
vm: '{{ inventory_hostname }}'
149+
public_port: '{{ ansible_ssh_port }}'
150+
private_port: 22
151+
vpc: myVPC
152+
network: backend
143153
'''
144154

145155
RETURN = '''

0 commit comments

Comments
 (0)