mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
hcloud_firewall: Add support for esp and gre (#161)
Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de> Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
This commit is contained in:
parent
16b42d2fb6
commit
a87c82d808
2 changed files with 6 additions and 2 deletions
2
changelogs/fragments/hcloud_firewall-esp-gre.yml
Normal file
2
changelogs/fragments/hcloud_firewall-esp-gre.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- hcloud_firewall - add support for esp and gre protocols
|
|
@ -55,17 +55,19 @@ options:
|
|||
description:
|
||||
- The protocol of the firewall rule.
|
||||
type: str
|
||||
choices: [ icmp, tcp, udp ]
|
||||
choices: [ icmp, tcp, udp, esp, gre ]
|
||||
source_ips:
|
||||
description:
|
||||
- List of CIDRs that are allowed within this rule
|
||||
type: list
|
||||
elements: str
|
||||
default: [ ]
|
||||
destination_ips:
|
||||
description:
|
||||
- List of CIDRs that are allowed within this rule
|
||||
type: list
|
||||
elements: str
|
||||
default: [ ]
|
||||
description:
|
||||
description:
|
||||
- User defined description of this rule.
|
||||
|
@ -306,7 +308,7 @@ class AnsibleHcloudFirewall(Hcloud):
|
|||
elements="dict",
|
||||
options=dict(
|
||||
direction={"type": "str", "choices": ["in", "out"]},
|
||||
protocol={"type": "str", "choices": ["icmp", "udp", "tcp"]},
|
||||
protocol={"type": "str", "choices": ["icmp", "udp", "tcp", "esp", "gre"]},
|
||||
port={"type": "str"},
|
||||
source_ips={"type": "list", "elements": "str", "default": []},
|
||||
destination_ips={"type": "list", "elements": "str", "default": []},
|
||||
|
|
Loading…
Reference in a new issue