fix openstack fw/floating ip sidebar refs
expand firewall examples to be self-contained
This commit is contained in:
parent
2ccaaf204d
commit
b4df3c427a
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: "openstack"
|
layout: "openstack"
|
||||||
page_title: "OpenStack: openstack_compute_floatingip_v2"
|
page_title: "OpenStack: openstack_compute_floatingip_v2"
|
||||||
sidebar_current: "docs-openstack-resource-compute-secgroup-2"
|
sidebar_current: "docs-openstack-resource-compute-floatingip-2"
|
||||||
description: |-
|
description: |-
|
||||||
Manages a V2 floating IP resource within OpenStack Nova (compute).
|
Manages a V2 floating IP resource within OpenStack Nova (compute).
|
||||||
---
|
---
|
||||||
|
|
|
@ -13,6 +13,31 @@ Manages a v1 firewall resource within OpenStack.
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
|
resource "openstack_fw_rule_v1" "rule_1" {
|
||||||
|
name = "my-rule-1"
|
||||||
|
description = "drop TELNET traffic"
|
||||||
|
action = "deny"
|
||||||
|
protocol = "tcp"
|
||||||
|
destination_port = "23"
|
||||||
|
enabled = "true"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "openstack_fw_rule_v1" "rule_2" {
|
||||||
|
name = "my-rule-2"
|
||||||
|
description = "drop NTP traffic"
|
||||||
|
action = "deny"
|
||||||
|
protocol = "udp"
|
||||||
|
destination_port = "123"
|
||||||
|
enabled = "false"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "openstack_fw_policy_v1" "policy_1" {
|
||||||
|
region = ""
|
||||||
|
name = "my-policy"
|
||||||
|
rules = ["${openstack_fw_rule_v1.rule_1.id}",
|
||||||
|
"${openstack_fw_rule_v1.rule_2.id}"]
|
||||||
|
}
|
||||||
|
|
||||||
resource "openstack_fw_firewall_v1" "firewall_1" {
|
resource "openstack_fw_firewall_v1" "firewall_1" {
|
||||||
region = ""
|
region = ""
|
||||||
name = "my-firewall"
|
name = "my-firewall"
|
||||||
|
|
|
@ -13,6 +13,24 @@ Manages a v1 firewall policy resource within OpenStack.
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
|
resource "openstack_fw_rule_v1" "rule_1" {
|
||||||
|
name = "my-rule-1"
|
||||||
|
description = "drop TELNET traffic"
|
||||||
|
action = "deny"
|
||||||
|
protocol = "tcp"
|
||||||
|
destination_port = "23"
|
||||||
|
enabled = "true"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "openstack_fw_rule_v1" "rule_2" {
|
||||||
|
name = "my-rule-2"
|
||||||
|
description = "drop NTP traffic"
|
||||||
|
action = "deny"
|
||||||
|
protocol = "udp"
|
||||||
|
destination_port = "123"
|
||||||
|
enabled = "false"
|
||||||
|
}
|
||||||
|
|
||||||
resource "openstack_fw_policy_v1" "policy_1" {
|
resource "openstack_fw_policy_v1" "policy_1" {
|
||||||
region = ""
|
region = ""
|
||||||
name = "my-policy"
|
name = "my-policy"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: "openstack"
|
layout: "openstack"
|
||||||
page_title: "OpenStack: openstack_fw_rule_v1"
|
page_title: "OpenStack: openstack_fw_rule_v1"
|
||||||
sidebar_current: "docs-openstack-resource-compute-rule-1"
|
sidebar_current: "docs-openstack-resource-fw-rule-1"
|
||||||
description: |-
|
description: |-
|
||||||
Manages a v1 firewall rule resource within OpenStack.
|
Manages a v1 firewall rule resource within OpenStack.
|
||||||
---
|
---
|
||||||
|
@ -19,7 +19,7 @@ resource "openstack_fw_rule_v1" "rule_1" {
|
||||||
action = "deny"
|
action = "deny"
|
||||||
protocol = "tcp"
|
protocol = "tcp"
|
||||||
destination_port = "23"
|
destination_port = "23"
|
||||||
enabled = "false"
|
enabled = "true"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: "openstack"
|
layout: "openstack"
|
||||||
page_title: "OpenStack: openstack_networking_floatingip_v2"
|
page_title: "OpenStack: openstack_networking_floatingip_v2"
|
||||||
sidebar_current: "docs-openstack-resource-compute-secgroup-2"
|
sidebar_current: "docs-openstack-resource-networking-floatingip-2"
|
||||||
description: |-
|
description: |-
|
||||||
Manages a V2 floating IP resource within OpenStack Neutron (networking).
|
Manages a V2 floating IP resource within OpenStack Neutron (networking).
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in New Issue