Updating the spacing
This commit is contained in:
parent
bfd6aab40f
commit
965d6ce92e
|
@ -14,9 +14,9 @@ Use this data source to access the configuration of an instance's network interf
|
||||||
|
|
||||||
```
|
```
|
||||||
data "opc_compute_network_interface" "foo" {
|
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}"
|
instance_name = "${opc_compute_instance.my_instance.name}"
|
||||||
interface = "eth0"
|
interface = "eth0"
|
||||||
}
|
}
|
||||||
|
|
||||||
output "mac_address" {
|
output "mac_address" {
|
||||||
|
|
|
@ -14,9 +14,9 @@ The ``opc_compute_acl`` resource creates and manages an ACL in an OPC identity d
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_acl" "default" {
|
resource "opc_compute_acl" "default" {
|
||||||
name = "ACL1"
|
name = "ACL1"
|
||||||
description = "This is a description for an acl"
|
description = "This is a description for an acl"
|
||||||
tags = ["tag1", "tag2"]
|
tags = ["tag1", "tag2"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,10 @@ The ``opc_compute_image_list_entry`` resource creates and manages an Image List
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_image_list_entry" "test" {
|
resource "opc_compute_image_list_entry" "test" {
|
||||||
name = "imagelist1"
|
name = "imagelist1"
|
||||||
machine_images = ["image1", "image2"]
|
machine_images = ["image1", "image2"]
|
||||||
version = 1
|
version = 1
|
||||||
attributes = <<JSON
|
attributes = <<JSON
|
||||||
{
|
{
|
||||||
"foo": "bar"
|
"foo": "bar"
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,27 +20,27 @@ on your instance resources as an extra safety measure.
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_instance" "test_instance" {
|
resource "opc_compute_instance" "test_instance" {
|
||||||
name = "test"
|
name = "test"
|
||||||
label = "test"
|
label = "test"
|
||||||
shape = "oc3"
|
shape = "oc3"
|
||||||
imageList = "/oracle/public/oel_6.4_2GB_v1"
|
imageList = "/oracle/public/oel_6.4_2GB_v1"
|
||||||
sshKeys = ["${opc_compute_ssh_key.key1.name}"]
|
sshKeys = ["${opc_compute_ssh_key.key1.name}"]
|
||||||
networking_info {
|
networking_info {
|
||||||
index = 0
|
index = 0
|
||||||
model = "e1000"
|
model = "e1000"
|
||||||
nat = ["ippool:/oracle/public/ippool"]
|
nat = ["ippool:/oracle/public/ippool"]
|
||||||
shared_network = true
|
shared_network = true
|
||||||
}
|
}
|
||||||
networking_info {
|
networking_info {
|
||||||
index = 1
|
index = 1
|
||||||
ip_network = "${opc_compute_ip_network.foo.id}"
|
ip_network = "${opc_compute_ip_network.foo.id}"
|
||||||
vnic = "testing-vnic-name"
|
vnic = "testing-vnic-name"
|
||||||
shared_network = false
|
shared_network = false
|
||||||
}
|
}
|
||||||
storage {
|
storage {
|
||||||
volume = "${opc_compute_storage_volume.foo.name}"
|
volume = "${opc_compute_storage_volume.foo.name}"
|
||||||
index = 1
|
index = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,10 @@ The ``opc_compute_ip_address_association`` resource creates and manages an IP ad
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_ip_address_association" "default" {
|
resource "opc_compute_ip_address_association" "default" {
|
||||||
name = "PrefixSet1"
|
name = "PrefixSet1"
|
||||||
ip_address_reservation = "${opc_compute_ip_address_reservation.default.name}"
|
ip_address_reservation = "${opc_compute_ip_address_reservation.default.name}"
|
||||||
vnic = "${data.opc_compute_vnic.default.name}"
|
vnic = "${data.opc_compute_vnic.default.name}"
|
||||||
tags = ["tags1", "tags2"]
|
tags = ["tags1", "tags2"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -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" {
|
resource "opc_compute_ip_address_prefix_set" "default" {
|
||||||
name = "PrefixSet1"
|
name = "PrefixSet1"
|
||||||
prefixes = ["192.168.0.0/16", "172.120.0.0/24"]
|
prefixes = ["192.168.0.0/16", "172.120.0.0/24"]
|
||||||
tags = ["tags1", "tags2"]
|
tags = ["tags1", "tags2"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ The ``opc_compute_ip_address_reservation`` resource creates and manages an IP ad
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_ip_address_reservation" "default" {
|
resource "opc_compute_ip_address_reservation" "default" {
|
||||||
name = "IPAddressReservation1"
|
name = "IPAddressReservation1"
|
||||||
ip_address_pool = "public-ippool"
|
ip_address_pool = "public-ippool"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,8 @@ an OPC identity domain, for the Shared Network.
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_ip_association" "instance1_reservation1" {
|
resource "opc_compute_ip_association" "instance1_reservation1" {
|
||||||
vcable = "${opc_compute_instance.test_instance.vcable}"
|
vcable = "${opc_compute_instance.test_instance.vcable}"
|
||||||
parentpool = "ipreservation:${opc_compute_ip_reservation.reservation1.name}"
|
parentpool = "ipreservation:${opc_compute_ip_reservation.reservation1.name}"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,12 +14,12 @@ The ``opc_compute_ip_network`` resource creates and manages an IP Network.
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_ip_network" "foo" {
|
resource "opc_compute_ip_network" "foo" {
|
||||||
name = "my-ip-network"
|
name = "my-ip-network"
|
||||||
description = "my IP Network"
|
description = "my IP Network"
|
||||||
ip_address_prefix = "10.0.1.0/24"
|
ip_address_prefix = "10.0.1.0/24"
|
||||||
ip_network_exchange = "${opc_compute_ip_exchange.foo.name}"
|
ip_network_exchange = "${opc_compute_ip_exchange.foo.name}"
|
||||||
public_napt_enabled = false
|
public_napt_enabled = false
|
||||||
tags = ["tag1", "tag2"]
|
tags = ["tag1", "tag2"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ The ``opc_compute_ip_network_exchange`` resource creates and manages an IP netwo
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_ip_network_exchange" "default" {
|
resource "opc_compute_ip_network_exchange" "default" {
|
||||||
name = "NetworkExchange1"
|
name = "NetworkExchange1"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,9 @@ The ``opc_compute_ip_reservation`` resource creates and manages an IP reservatio
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_ip_reservation" "reservation1" {
|
resource "opc_compute_ip_reservation" "reservation1" {
|
||||||
parent_pool = "/oracle/public/ippool"
|
parent_pool = "/oracle/public/ippool"
|
||||||
permanent = true
|
permanent = true
|
||||||
tags = []
|
tags = [ "test" ]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,12 +14,12 @@ The ``opc_compute_route`` resource creates and manages a route for an IP Network
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_route" "foo" {
|
resource "opc_compute_route" "foo" {
|
||||||
name = "my-route"
|
name = "my-route"
|
||||||
description = "my IP Network route"
|
description = "my IP Network route"
|
||||||
admin_distance = 1
|
admin_distance = 1
|
||||||
ip_address_prefix = "10.0.1.0/24"
|
ip_address_prefix = "10.0.1.0/24"
|
||||||
next_hop_vnic_set = "${opc_compute_vnic_set.bar.name}"
|
next_hop_vnic_set = "${opc_compute_vnic_set.bar.name}"
|
||||||
tags = ["tag1", "tag2"]
|
tags = ["tag1", "tag2"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -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" {
|
resource "opc_compute_sec_rule" "test_rule" {
|
||||||
name = "test"
|
name = "test"
|
||||||
source_list = "seclist:${opc_compute_security_list.sec-list1.name}"
|
source_list = "seclist:${opc_compute_security_list.sec-list1.name}"
|
||||||
destination_list = "seciplist:${opc_compute_security_ip_list.sec-ip-list1.name}"
|
destination_list = "seciplist:${opc_compute_security_ip_list.sec-ip-list1.name}"
|
||||||
action = "permit"
|
action = "permit"
|
||||||
application = "${opc_compute_security_application.spring-boot.name}"
|
application = "${opc_compute_security_application.spring-boot.name}"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,9 @@ The ``opc_compute_security_application`` resource creates and manages a security
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_security_application" "tomcat" {
|
resource "opc_compute_security_application" "tomcat" {
|
||||||
name = "tomcat"
|
name = "tomcat"
|
||||||
protocol = "tcp"
|
protocol = "tcp"
|
||||||
dport = "8080"
|
dport = "8080"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -24,10 +24,10 @@ resource "opc_compute_security_application" "tomcat" {
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_security_application" "tomcat" {
|
resource "opc_compute_security_application" "tomcat" {
|
||||||
name = "tomcat"
|
name = "tomcat"
|
||||||
protocol = "icmp"
|
protocol = "icmp"
|
||||||
icmptype = "echo"
|
icmptype = "echo"
|
||||||
icmpcode = "protocol"
|
icmpcode = "protocol"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -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" {
|
resource "opc_compute_security_ip_list" "sec_ip_list1" {
|
||||||
name = "sec-ip-list1"
|
name = "sec-ip-list1"
|
||||||
ip_entries = ["217.138.34.4"]
|
ip_entries = ["217.138.34.4"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,10 @@ The ``opc_compute_security_protocol`` resource creates and manages a security pr
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_security_protocol" "default" {
|
resource "opc_compute_security_protocol" "default" {
|
||||||
name = "security-protocol-1"
|
name = "security-protocol-1"
|
||||||
dst_ports = ["2045-2050"]
|
dst_ports = ["2045-2050"]
|
||||||
src_ports = ["3045-3060"]
|
src_ports = ["3045-3060"]
|
||||||
ip_protocol = "tcp"
|
ip_protocol = "tcp"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,10 @@ The ``opc_compute_security_rule`` resource creates and manages a security rule i
|
||||||
|
|
||||||
```
|
```
|
||||||
resource "opc_compute_security_rule" "default" {
|
resource "opc_compute_security_rule" "default" {
|
||||||
name = "SecurityRule1"
|
name = "SecurityRule1"
|
||||||
flow_direction = "ingress"
|
flow_direction = "ingress"
|
||||||
acl = "${opc_compute_acl.default.name}"
|
acl = "${opc_compute_acl.default.name}"
|
||||||
security_protocols = ["${opc_compute_security_protocol.default.name}"]
|
security_protocols = ["${opc_compute_security_protocol.default.name}"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -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" {
|
resource "opc_compute_ssh_key" "%s" {
|
||||||
name = "test-key"
|
name = "test-key"
|
||||||
key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqw6JwbjIk..."
|
key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqw6JwbjIk..."
|
||||||
enabled = true
|
enabled = true
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ resource "opc_compute_storage_volume" "test" {
|
||||||
size = 30
|
size = 30
|
||||||
tags = ["first", "second"]
|
tags = ["first", "second"]
|
||||||
bootable {
|
bootable {
|
||||||
image_list = "${opc_compute_image_list.test.name}"
|
image_list = "${opc_compute_image_list.test.name}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -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" {
|
resource "opc_compute_vnic_set" "test_set" {
|
||||||
name = "test_vnic_set"
|
name = "test_vnic_set"
|
||||||
description = "My vnic set"
|
description = "My vnic set"
|
||||||
applied_acls = ["acl1", "acl2"]
|
applied_acls = ["acl1", "acl2"]
|
||||||
virtual_nics = ["nic1", "nic2", "nic3"]
|
virtual_nics = ["nic1", "nic2", "nic3"]
|
||||||
tags = ["xyzzy", "quux"]
|
tags = ["xyzzy", "quux"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue