Updating the spacing

This commit is contained in:
tombuildsstuff 2017-04-07 11:57:52 +01:00
parent bfd6aab40f
commit 965d6ce92e
21 changed files with 97 additions and 97 deletions

View File

@ -14,9 +14,9 @@ Use this data source to access the configuration of an instance's network interf
```
data "opc_compute_network_interface" "foo" {
instance_id = "${opc_compute_instance.my_instance.id}"
instance_id = "${opc_compute_instance.my_instance.id}"
instance_name = "${opc_compute_instance.my_instance.name}"
interface = "eth0"
interface = "eth0"
}
output "mac_address" {

View File

@ -14,9 +14,9 @@ The ``opc_compute_acl`` resource creates and manages an ACL in an OPC identity d
```
resource "opc_compute_acl" "default" {
name = "ACL1"
description = "This is a description for an acl"
tags = ["tag1", "tag2"]
name = "ACL1"
description = "This is a description for an acl"
tags = ["tag1", "tag2"]
}
```

View File

@ -14,10 +14,10 @@ The ``opc_compute_image_list_entry`` resource creates and manages an Image List
```
resource "opc_compute_image_list_entry" "test" {
name = "imagelist1"
name = "imagelist1"
machine_images = ["image1", "image2"]
version = 1
attributes = <<JSON
version = 1
attributes = <<JSON
{
"foo": "bar"
}

View File

@ -20,27 +20,27 @@ on your instance resources as an extra safety measure.
```
resource "opc_compute_instance" "test_instance" {
name = "test"
label = "test"
shape = "oc3"
imageList = "/oracle/public/oel_6.4_2GB_v1"
sshKeys = ["${opc_compute_ssh_key.key1.name}"]
networking_info {
index = 0
model = "e1000"
nat = ["ippool:/oracle/public/ippool"]
shared_network = true
}
networking_info {
index = 1
ip_network = "${opc_compute_ip_network.foo.id}"
vnic = "testing-vnic-name"
shared_network = false
}
storage {
volume = "${opc_compute_storage_volume.foo.name}"
index = 1
}
name = "test"
label = "test"
shape = "oc3"
imageList = "/oracle/public/oel_6.4_2GB_v1"
sshKeys = ["${opc_compute_ssh_key.key1.name}"]
networking_info {
index = 0
model = "e1000"
nat = ["ippool:/oracle/public/ippool"]
shared_network = true
}
networking_info {
index = 1
ip_network = "${opc_compute_ip_network.foo.id}"
vnic = "testing-vnic-name"
shared_network = false
}
storage {
volume = "${opc_compute_storage_volume.foo.name}"
index = 1
}
}
```

View File

@ -14,10 +14,10 @@ The ``opc_compute_ip_address_association`` resource creates and manages an IP ad
```
resource "opc_compute_ip_address_association" "default" {
name = "PrefixSet1"
ip_address_reservation = "${opc_compute_ip_address_reservation.default.name}"
vnic = "${data.opc_compute_vnic.default.name}"
tags = ["tags1", "tags2"]
name = "PrefixSet1"
ip_address_reservation = "${opc_compute_ip_address_reservation.default.name}"
vnic = "${data.opc_compute_vnic.default.name}"
tags = ["tags1", "tags2"]
}
```

View File

@ -14,9 +14,9 @@ The ``opc_compute_ip_address_prefix_set`` resource creates and manages an IP add
```
resource "opc_compute_ip_address_prefix_set" "default" {
name = "PrefixSet1"
prefixes = ["192.168.0.0/16", "172.120.0.0/24"]
tags = ["tags1", "tags2"]
name = "PrefixSet1"
prefixes = ["192.168.0.0/16", "172.120.0.0/24"]
tags = ["tags1", "tags2"]
}
```

View File

@ -14,8 +14,8 @@ The ``opc_compute_ip_address_reservation`` resource creates and manages an IP ad
```
resource "opc_compute_ip_address_reservation" "default" {
name = "IPAddressReservation1"
ip_address_pool = "public-ippool"
name = "IPAddressReservation1"
ip_address_pool = "public-ippool"
}
```

View File

@ -15,8 +15,8 @@ an OPC identity domain, for the Shared Network.
```
resource "opc_compute_ip_association" "instance1_reservation1" {
vcable = "${opc_compute_instance.test_instance.vcable}"
parentpool = "ipreservation:${opc_compute_ip_reservation.reservation1.name}"
vcable = "${opc_compute_instance.test_instance.vcable}"
parentpool = "ipreservation:${opc_compute_ip_reservation.reservation1.name}"
}
```

View File

@ -14,12 +14,12 @@ The ``opc_compute_ip_network`` resource creates and manages an IP Network.
```
resource "opc_compute_ip_network" "foo" {
name = "my-ip-network"
description = "my IP Network"
ip_address_prefix = "10.0.1.0/24"
ip_network_exchange = "${opc_compute_ip_exchange.foo.name}"
public_napt_enabled = false
tags = ["tag1", "tag2"]
name = "my-ip-network"
description = "my IP Network"
ip_address_prefix = "10.0.1.0/24"
ip_network_exchange = "${opc_compute_ip_exchange.foo.name}"
public_napt_enabled = false
tags = ["tag1", "tag2"]
}
```

View File

@ -14,7 +14,7 @@ The ``opc_compute_ip_network_exchange`` resource creates and manages an IP netwo
```
resource "opc_compute_ip_network_exchange" "default" {
name = "NetworkExchange1"
name = "NetworkExchange1"
}
```

View File

@ -14,9 +14,9 @@ The ``opc_compute_ip_reservation`` resource creates and manages an IP reservatio
```
resource "opc_compute_ip_reservation" "reservation1" {
parent_pool = "/oracle/public/ippool"
permanent = true
tags = []
parent_pool = "/oracle/public/ippool"
permanent = true
tags = [ "test" ]
}
```

View File

@ -14,12 +14,12 @@ The ``opc_compute_route`` resource creates and manages a route for an IP Network
```
resource "opc_compute_route" "foo" {
name = "my-route"
description = "my IP Network route"
admin_distance = 1
ip_address_prefix = "10.0.1.0/24"
next_hop_vnic_set = "${opc_compute_vnic_set.bar.name}"
tags = ["tag1", "tag2"]
name = "my-route"
description = "my IP Network route"
admin_distance = 1
ip_address_prefix = "10.0.1.0/24"
next_hop_vnic_set = "${opc_compute_vnic_set.bar.name}"
tags = ["tag1", "tag2"]
}
```

View File

@ -14,11 +14,11 @@ The ``opc_compute_sec_rule`` resource creates and manages a sec rule in an OPC i
```
resource "opc_compute_sec_rule" "test_rule" {
name = "test"
source_list = "seclist:${opc_compute_security_list.sec-list1.name}"
destination_list = "seciplist:${opc_compute_security_ip_list.sec-ip-list1.name}"
action = "permit"
application = "${opc_compute_security_application.spring-boot.name}"
name = "test"
source_list = "seclist:${opc_compute_security_list.sec-list1.name}"
destination_list = "seciplist:${opc_compute_security_ip_list.sec-ip-list1.name}"
action = "permit"
application = "${opc_compute_security_application.spring-boot.name}"
}
```

View File

@ -14,9 +14,9 @@ The ``opc_compute_security_application`` resource creates and manages a security
```
resource "opc_compute_security_application" "tomcat" {
name = "tomcat"
protocol = "tcp"
dport = "8080"
name = "tomcat"
protocol = "tcp"
dport = "8080"
}
```
@ -24,10 +24,10 @@ resource "opc_compute_security_application" "tomcat" {
```
resource "opc_compute_security_application" "tomcat" {
name = "tomcat"
protocol = "icmp"
icmptype = "echo"
icmpcode = "protocol"
name = "tomcat"
protocol = "icmp"
icmptype = "echo"
icmpcode = "protocol"
}
```

View File

@ -14,8 +14,8 @@ The ``opc_compute_security_ip_list`` resource creates and manages a security IP
```
resource "opc_compute_security_ip_list" "sec_ip_list1" {
name = "sec-ip-list1"
ip_entries = ["217.138.34.4"]
name = "sec-ip-list1"
ip_entries = ["217.138.34.4"]
}
```

View File

@ -14,10 +14,10 @@ The ``opc_compute_security_protocol`` resource creates and manages a security pr
```
resource "opc_compute_security_protocol" "default" {
name = "security-protocol-1"
dst_ports = ["2045-2050"]
src_ports = ["3045-3060"]
ip_protocol = "tcp"
name = "security-protocol-1"
dst_ports = ["2045-2050"]
src_ports = ["3045-3060"]
ip_protocol = "tcp"
}
```

View File

@ -14,10 +14,10 @@ The ``opc_compute_security_rule`` resource creates and manages a security rule i
```
resource "opc_compute_security_rule" "default" {
name = "SecurityRule1"
flow_direction = "ingress"
acl = "${opc_compute_acl.default.name}"
security_protocols = ["${opc_compute_security_protocol.default.name}"]
name = "SecurityRule1"
flow_direction = "ingress"
acl = "${opc_compute_acl.default.name}"
security_protocols = ["${opc_compute_security_protocol.default.name}"]
}
```

View File

@ -14,9 +14,9 @@ The ``opc_compute_ssh_key`` resource creates and manages an SSH key in an OPC id
```
resource "opc_compute_ssh_key" "%s" {
name = "test-key"
key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqw6JwbjIk..."
enabled = true
name = "test-key"
key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqw6JwbjIk..."
enabled = true
}
```

View File

@ -36,7 +36,7 @@ resource "opc_compute_storage_volume" "test" {
size = 30
tags = ["first", "second"]
bootable {
image_list = "${opc_compute_image_list.test.name}"
image_list = "${opc_compute_image_list.test.name}"
}
}
```

View File

@ -14,11 +14,11 @@ The ``opc_compute_vnic_set`` resource creates and manages a virtual NIC set in a
```
resource "opc_compute_vnic_set" "test_set" {
name = "test_vnic_set"
description = "My vnic set"
applied_acls = ["acl1", "acl2"]
virtual_nics = ["nic1", "nic2", "nic3"]
tags = ["xyzzy", "quux"]
name = "test_vnic_set"
description = "My vnic set"
applied_acls = ["acl1", "acl2"]
virtual_nics = ["nic1", "nic2", "nic3"]
tags = ["xyzzy", "quux"]
}
```