Skip to content

Commit 2a26006

Browse files
authored
Merge pull request #690 from terraform-providers/release
Release 3.12.0
2 parents d4eec9f + a3b260d commit 2a26006

File tree

239 files changed

+6566
-2379
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+6566
-2379
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
## 3.11.3 (Unreleased)
1+
## 3.12.0 (Unreleased)
2+
3+
### Added
4+
- Support for `retry_duration_seconds` option to configure length of retry in the face of HTTP 429 and 500 errors
5+
- Support for custom header insertion, extension, and removal for Load Balancer listener resource
6+
- Support for consistent volume names in the Block Volume attachments
7+
8+
### Fixed
9+
- Retried SDK calls are now jittered to avoid herding of retry requests in high parallelism scenarios
10+
- Fail the initialization of the provider if either of `user_ocid`, `fingerprint`, `private_key`, `private_key_path` or `private_key_password` are specified for `InstancePrincipal` or `InstancePrincipalWithCerts` auth mode.
11+
12+
### Note
13+
- Examples and test updated to use VM.Standard2.1
14+
- Windows example image updated to Windows-Server-2012-R2-Standard-Edition-VM-Gen2-2018.12.12-0
15+
216
## 3.11.2 (January 10, 2019)
317

418
### Fixed

docs/examples/compute/image/compute.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resource "oci_core_instance" "TFInstance" {
1313

1414
source_details {
1515
source_type = "image"
16-
source_id = "${lookup(data.oci_core_images.TFSupportedShapeImages.images[0], "id")}"
16+
source_id = "${var.instance_image_ocid[var.region]}"
1717
}
1818

1919
metadata {

docs/examples/compute/image/datasources.tf

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,24 @@ data "oci_identity_availability_domains" "ADs" {
55

66
# Gets the custom image that will be created by this Terraform config
77
data "oci_core_images" "TFCustomImage" {
8-
compartment_id = "${var.tenancy_ocid}"
8+
compartment_id = "${var.compartment_ocid}"
99

1010
filter {
1111
name = "id"
1212
values = ["${oci_core_image.TFCustomImage.id}"]
1313
}
1414
}
1515

16-
# Gets a list of all Oracle Linux 7.4 images that support a given Instance shape
16+
# Gets a list of images within a tenancy
1717
data "oci_core_images" "TFSupportedShapeImages" {
18-
compartment_id = "${var.tenancy_ocid}"
19-
shape = "${var.instance_shape}"
20-
operating_system = "${var.ImageOS}"
21-
operating_system_version = "${var.ImageOSVersion}"
18+
compartment_id = "${var.tenancy_ocid}"
19+
20+
# Uncomment below to filter images that support a specific instance shape
21+
#shape = "VM.Standard2.1"
22+
23+
# Uncomment below to filter images that are a specific OS
24+
#operating_system = "Oracle Linux"
25+
26+
# Uncomment below to filter images that are a specific OS version
27+
#operating_system_version = "7.5"
2228
}

docs/examples/compute/image/variables.tf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@ variable "instance_shape" {
1616
default = "VM.Standard2.1"
1717
}
1818

19-
variable "ImageOS" {
20-
default = "Oracle Linux"
21-
}
19+
variable "instance_image_ocid" {
20+
type = "map"
21+
22+
default = {
23+
// See https://docs.us-phoenix-1.oraclecloud.com/images/
24+
// Oracle-provided image "Oracle-Linux-7.5-2018.10.16-0"
25+
us-phoenix-1 = "ocid1.image.oc1.phx.aaaaaaaaoqj42sokaoh42l76wsyhn3k2beuntrh5maj3gmgmzeyr55zzrwwa"
2226

23-
variable "ImageOSVersion" {
24-
default = "7.4"
27+
us-ashburn-1 = "ocid1.image.oc1.iad.aaaaaaaageeenzyuxgia726xur4ztaoxbxyjlxogdhreu3ngfj2gji3bayda"
28+
eu-frankfurt-1 = "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaaitzn6tdyjer7jl34h2ujz74jwy5nkbukbh55ekp6oyzwrtfa4zma"
29+
uk-london-1 = "ocid1.image.oc1.uk-london-1.aaaaaaaa32voyikkkzfxyo4xbdmadc2dmvorfxxgdhpnk6dw64fa3l4jh7wa"
30+
}
2531
}

docs/examples/compute/instance/block.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ resource "oci_core_volume_attachment" "TFBlockAttach" {
1212
compartment_id = "${var.compartment_ocid}"
1313
instance_id = "${oci_core_instance.TFInstance.*.id[count.index / var.NumIscsiVolumesPerInstance]}"
1414
volume_id = "${oci_core_volume.TFBlock.*.id[count.index]}"
15+
device = "${count.index == 0 ? var.volume_attachment_device : ""}"
1516

1617
# Set this to enable CHAP authentication for an ISCSI volume attachment. The oci_core_volume_attachment resource will
1718
# contain the CHAP authentication details via the "chap_secret" and "chap_username" attributes.

docs/examples/compute/instance/datasources.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ data "oci_core_boot_volume_attachments" "TFBootVolumeAttachments" {
1212

1313
instance_id = "${oci_core_instance.TFInstance.*.id[count.index]}"
1414
}
15+
16+
data "oci_core_instance_devices" "TFInstanceDevices" {
17+
instance_id = "${oci_core_instance.TFInstance.*.id[count.index]}"
18+
}

docs/examples/compute/instance/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ output "BootVolumeIDs" {
1212
value = ["${oci_core_instance.TFInstance.*.boot_volume_id}"]
1313
}
1414

15+
output "InstanceDevices" {
16+
value = ["${data.oci_core_instance_devices.TFInstanceDevices.devices}"]
17+
}
18+
1519
# Output the chap secret information for ISCSI volume attachments. This can be used to output
1620
# CHAP information for ISCSI volume attachments that have "use_chap" set to true.
1721
#output "IscsiVolumeAttachmentChapUsernames" {

docs/examples/compute/instance/variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,7 @@ variable "tag_namespace_description" {
6262
variable "tag_namespace_name" {
6363
default = "exampletagns"
6464
}
65+
66+
variable "volume_attachment_device" {
67+
default = "/dev/oracleoci/oraclevdb"
68+
}

docs/examples/compute/windows/variables.tf

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ variable instance_image_ocid {
5050
type = "map"
5151

5252
default = {
53-
# Images released in and after July 2018 have cloudbase-init and winrm enabled by default, refer to the release notes - https://docs.cloud.oracle.com/iaas/images/
54-
# Image OCIDs for Windows-Server-2012-R2-Standard-Edition-VM-2018.07.19-0 - https://docs.cloud.oracle.com/iaas/images/image/256a6d7c-4fc0-47c7-a61c-b6bbf25c8aba/
55-
eu-frankfurt-1 = "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaa3nh5j3l3ip62tb2z4gkcrfn23yhwucui5do5abrk4ttvwclxu7ja"
53+
# Images released after June 2018 have cloudbase-init and winrm enabled by default, refer to the release notes - https://docs.cloud.oracle.com/iaas/images/
54+
# The below Image OCIDs are for Windows-Server-2012-R2-Standard-Edition-VM-Gen2-2018.12.12-0
55+
# See https://docs.cloud.oracle.com/iaas/images/image/5e34cde5-6cef-4cc3-b8f1-c8fc3a088302/
56+
us-phoenix-1 = "ocid1.image.oc1.phx.aaaaaaaarlo3ace3wq34aompwj3u2z2xteonboapg663woz6d2iovarowhja"
5657

57-
us-ashburn-1 = "ocid1.image.oc1.iad.aaaaaaaauybkm3gymmgenl3e7eqjcjuh324hbocftnxhyn5o2ghpy4st6xza"
58-
uk-london-1 = "ocid1.image.oc1.uk-london-1.aaaaaaaad3q2sx2ngclnggc4nvpop6szposwxnljvuswhimiszwcsltsvi2q"
59-
us-phoenix-1 = "ocid1.image.oc1.phx.aaaaaaaaqcty27fjcgov3a2hl6bimama5l3isv2ejs7utulnpfw5btyyb7gq"
58+
us-ashburn-1 = "ocid1.image.oc1.iad.aaaaaaaabzwak2haqxh3r7h6dajgu4enp7q7hcrreql45awryd5frjsd5l6a"
59+
eu-frankfurt-1 = "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaaourcjktoe3gprvwfksxc36r4rxgbcjs5qvtrja6w6euivci635vq"
60+
uk-london-1 = "ocid1.image.oc1.uk-london-1.aaaaaaaadb4mg7ii73wkrntmiunr7x7qrh7ompczvy3xbggm27pkhotpgj2q"
6061
}
6162
}
6263

docs/examples/load_balancer/lb_full/lb_full.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ resource "oci_load_balancer_listener" "lb-listener1" {
281281
hostname_names = ["${oci_load_balancer_hostname.test_hostname1.name}", "${oci_load_balancer_hostname.test_hostname2.name}"]
282282
port = 80
283283
protocol = "HTTP"
284+
rule_set_names = ["${oci_load_balancer_rule_set.test_rule_set.name}"]
284285

285286
connection_configuration {
286287
idle_timeout_in_seconds = "2"
@@ -322,6 +323,17 @@ resource "oci_load_balancer_backend" "lb-be2" {
322323
weight = 1
323324
}
324325

326+
resource "oci_load_balancer_rule_set" "test_rule_set" {
327+
items {
328+
action = "ADD_HTTP_REQUEST_HEADER"
329+
header = "example_header_name"
330+
value = "example_header_value"
331+
}
332+
333+
load_balancer_id = "${oci_load_balancer.lb1.id}"
334+
name = "example-rule-set-name"
335+
}
336+
325337
output "lb_public_ip" {
326338
value = ["${oci_load_balancer.lb1.ip_addresses}"]
327339
}

0 commit comments

Comments
 (0)