Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion plugins/modules/cs_portforward.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
open_firewall:
description:
- Whether the firewall rule for public port should be created, while creating the new rule.
- Not supported when forwarding ports in a VPC.
- Use M(cs_firewall) for managing firewall rules.
default: no
type: bool
Expand All @@ -71,7 +72,7 @@
type: str
network:
description:
- Name of the network.
- Name of the network. Required when forwarding ports in a VPC.
type: str
vpc:
description:
Expand Down Expand Up @@ -140,6 +141,15 @@
public_port: 22
private_port: 22
state: absent

- name: forward SSH in backend tier of VPC
ngine_io.cloudstack.cs_portforward:
ip_address: '{{ public_ip }}'
vm: '{{ inventory_hostname }}'
public_port: '{{ ansible_ssh_port }}'
private_port: 22
vpc: myVPC
network: backend
'''

RETURN = '''
Expand Down