fix openstack fw/floating ip sidebar refs

expand firewall examples to be self-contained
This commit is contained in:
Alexander Dupuy 2015-05-05 14:26:45 +02:00
parent 2ccaaf204d
commit b4df3c427a
5 changed files with 47 additions and 4 deletions

View File

@ -1,7 +1,7 @@
---
layout: "openstack"
page_title: "OpenStack: openstack_compute_floatingip_v2"
sidebar_current: "docs-openstack-resource-compute-secgroup-2"
sidebar_current: "docs-openstack-resource-compute-floatingip-2"
description: |-
Manages a V2 floating IP resource within OpenStack Nova (compute).
---

View File

@ -13,6 +13,31 @@ Manages a v1 firewall resource within OpenStack.
## 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" {
region = ""
name = "my-firewall"

View File

@ -13,6 +13,24 @@ Manages a v1 firewall policy resource within OpenStack.
## 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"

View File

@ -1,7 +1,7 @@
---
layout: "openstack"
page_title: "OpenStack: openstack_fw_rule_v1"
sidebar_current: "docs-openstack-resource-compute-rule-1"
sidebar_current: "docs-openstack-resource-fw-rule-1"
description: |-
Manages a v1 firewall rule resource within OpenStack.
---
@ -19,7 +19,7 @@ resource "openstack_fw_rule_v1" "rule_1" {
action = "deny"
protocol = "tcp"
destination_port = "23"
enabled = "false"
enabled = "true"
}
```

View File

@ -1,7 +1,7 @@
---
layout: "openstack"
page_title: "OpenStack: openstack_networking_floatingip_v2"
sidebar_current: "docs-openstack-resource-compute-secgroup-2"
sidebar_current: "docs-openstack-resource-networking-floatingip-2"
description: |-
Manages a V2 floating IP resource within OpenStack Neutron (networking).
---