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" {
|
||||
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" {
|
||||
|
@ -40,7 +40,7 @@ output "vnic" {
|
|||
* `ip_network` - The IP Network assigned to the interface.
|
||||
* `mac_address` - The MAC address of the interface.
|
||||
* `model` - The model of the NIC card used.
|
||||
* `name_servers` - Array of name servers for the interface.
|
||||
* `name_servers` - Array of name servers for the interface.
|
||||
* `nat` - The IP Reservation (in IP Networks) associated with the interface.
|
||||
* `search_domains` - The search domains that are sent through DHCP as option 119.
|
||||
* `sec_lists` - The security lists the interface is added to.
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -48,7 +48,7 @@ resource "opc_compute_instance" "test_instance" {
|
|||
|
||||
The following arguments are supported:
|
||||
|
||||
* `name` - (Required) The name of the instance.
|
||||
* `name` - (Required) The name of the instance.
|
||||
|
||||
* `shape` - (Required) The shape of the instance, e.g. `oc4`.
|
||||
|
||||
|
@ -64,7 +64,7 @@ The following arguments are supported:
|
|||
|
||||
* `networking_info` - (Optional) Information pertaining to an individual network interface to be created and attached to the instance. See [Networking Info](#networking-info) below for more information.
|
||||
|
||||
* `storage` - (Optional) Information pertaining to an individual storage attachment to be created during instance creation. Please see [Storage Attachments](#storage-attachments) below for more information.
|
||||
* `storage` - (Optional) Information pertaining to an individual storage attachment to be created during instance creation. Please see [Storage Attachments](#storage-attachments) below for more information.
|
||||
|
||||
* `reverse_dns` - (Optional) If set to `true` (default), then reverse DNS records are created. If set to `false`, no reverse DNS records are created.
|
||||
|
||||
|
@ -99,7 +99,7 @@ JSON
|
|||
}
|
||||
```
|
||||
|
||||
This allows the user to have full control over the attributes supplied to an instance during instance creation.
|
||||
This allows the user to have full control over the attributes supplied to an instance during instance creation.
|
||||
There are, as well, some attributes that get populated during instance creation, and the full attributes map can be seen
|
||||
via the exported `attributes` attribute.
|
||||
|
||||
|
@ -112,10 +112,10 @@ Thus, any configuration changes in the `instance_attributes` field, will not reg
|
|||
## Networking Info
|
||||
|
||||
Each `networking_info` config manages a single network interface for the instance.
|
||||
The attributes are either required or optional depending on whether or not the interface is
|
||||
The attributes are either required or optional depending on whether or not the interface is
|
||||
in the Shared Network, or an IP Network. Some attributes can only be used if the interface is in the Shared
|
||||
Network, and same for an interface in an IP Network.
|
||||
|
||||
|
||||
The following attributes are supported:
|
||||
|
||||
* `index` - (Required) The numerical index of the network interface. Specified as an integer to allow for use of `count`, but directly maps to `ethX`. ie: With `index` set to `0`, the interface `eth0` will be created. Can only be `0-9`.
|
||||
|
@ -124,7 +124,7 @@ The following attributes are supported:
|
|||
* `ip_network` - (Optional, IP Network Only) The IP Network assigned to the interface.
|
||||
* `mac_address` - (Optional, IP Network Only) The MAC address of the interface.
|
||||
* `model` - (Required, Shared Network Only) The model of the NIC card used. Must be set to `e1000`.
|
||||
* `name_servers` - (Optional) Array of name servers for the interface.
|
||||
* `name_servers` - (Optional) Array of name servers for the interface.
|
||||
* `nat` - (Optional for IP Networks, Required for the Shared Network) The IP Reservations associated with the interface (IP Network).
|
||||
Indicates whether a temporary or permanent public IP address should be assigned to the instance (Shared Network).
|
||||
* `search_domains` - (Optional) The search domains that are sent through DHCP as option 119.
|
||||
|
@ -151,7 +151,7 @@ In addition to the above attributes, the following attributes are exported for a
|
|||
|
||||
## Attributes Reference
|
||||
|
||||
In addition to the attributes listed above, the following attributes are exported:
|
||||
In addition to the attributes listed above, the following attributes are exported:
|
||||
|
||||
* `id` - The `id` of the instance.
|
||||
* `attributes` - The full attributes of the instance, as a JSON string.
|
||||
|
@ -179,7 +179,7 @@ In addition to the attributes listed above, the following attributes are exporte
|
|||
Instances can be imported using the Instance's combined `Name` and `ID` with a `/` character separating them.
|
||||
If viewing an instance in the Oracle Web Console, the instance's `name` and `id` are the last two fields in the instances fully qualified `Name`
|
||||
|
||||
For example, in the Web Console an instance's fully qualified name is:
|
||||
For example, in the Web Console an instance's fully qualified name is:
|
||||
```
|
||||
/Compute-<identify>/<user>@<account>/<instance_name>/<instance_id>
|
||||
```
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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}"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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" ]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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}"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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}"]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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}"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
@ -48,7 +48,7 @@ In addition to the attributes above, the following attributes are exported:
|
|||
* `status` - Status of the snapshot.
|
||||
* `status_detail` - Details about the latest state of the storage volume snapshot.
|
||||
* `status_timestamp` - Indicates the time that the current view of the storage volume snapshot was generated.
|
||||
* `uri` - Uniform Resource Identifier
|
||||
* `uri` - Uniform Resource Identifier
|
||||
|
||||
## Import
|
||||
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue