Skip to content

Commit 9134249

Browse files
Update example image version to Oracle Linux 7.4 (#341)
Many of our examples and tests default to using Oracle Linux 7.3. While 7.3 images can still be used if you know the OCID, they are no longer returned by ListImages. Updating to 7.4 for now, but this is a short term solution while we determine the correct way to handle updates to ListImages.
1 parent 5bcec62 commit 9134249

File tree

16 files changed

+18
-17
lines changed

16 files changed

+18
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.terraform
22
terraform.tfstate*
3+
.terraform.tfstate.lock.info
34
tf.plan
45
*.tfvars
56
*.orig

data_source_obmcs_core_images_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (s *DatasourceCoreImageTestSuite) TestAccImage_basic() {
4141
data "oci_core_images" "t" {
4242
compartment_id = "${var.compartment_id}"
4343
operating_system = "Oracle Linux"
44-
operating_system_version = "7.3"
44+
operating_system_version = "7.4"
4545
4646
filter {
4747
name = "display_name"
@@ -56,7 +56,7 @@ func (s *DatasourceCoreImageTestSuite) TestAccImage_basic() {
5656
resource.TestCheckResourceAttr(s.ResourceName, "images.0.display_name", "Oracle-Linux-7.3-2017.07.17-1"),
5757
resource.TestCheckResourceAttr(s.ResourceName, "images.0.state", "AVAILABLE"),
5858
resource.TestCheckResourceAttr(s.ResourceName, "images.0.operating_system", "Oracle Linux"),
59-
resource.TestCheckResourceAttr(s.ResourceName, "images.0.operating_system_version", "7.3"),
59+
resource.TestCheckResourceAttr(s.ResourceName, "images.0.operating_system_version", "7.4"),
6060
resource.TestCheckResourceAttrSet(s.ResourceName, "images.0.time_created"),
6161
),
6262
},

data_source_obmcs_core_instances_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (s *DatasourceCoreInstanceTestSuite) SetupTest() {
5353
data "oci_core_images" "t" {
5454
compartment_id = "${var.compartment_id}"
5555
operating_system = "Oracle Linux"
56-
operating_system_version = "7.3"
56+
operating_system_version = "7.4"
5757
limit = 1
5858
}
5959

docs/examples/clusters/Mongodb/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ variable "InstanceOS" {
2222
}
2323

2424
variable "InstanceOSVersion" {
25-
default = "7.3"
25+
default = "7.4"
2626
}
2727

2828
variable "VPC-CIDR" {

docs/examples/compute/extended_metadata/extended_metadata.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ data "oci_identity_availability_domains" "ADs" {
3232
data "oci_core_images" "OLImageOCID" {
3333
compartment_id = "${var.compartment_ocid}"
3434
operating_system = "Oracle Linux"
35-
operating_system_version = "7.3"
35+
operating_system_version = "7.4"
3636
}
3737

3838
# Gets a list of vNIC attachments on the instance

docs/examples/compute/instance/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ variable "InstanceOS" {
2424
}
2525

2626
variable "InstanceOSVersion" {
27-
default = "7.3"
27+
default = "7.4"
2828
}
2929

3030
variable "DBSize" {

docs/examples/compute/instance_lite/instance_lite.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ data "oci_identity_availability_domains" "ADs" {
3030
data "oci_core_images" "image-list" {
3131
compartment_id = "${var.compartment_ocid}"
3232
operating_system = "Oracle Linux"
33-
operating_system_version = "7.3"
33+
operating_system_version = "7.4"
3434
}
3535

3636
resource "oci_core_instance" "instance1" {

docs/examples/compute/multi_vnic/multi_vnic.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ variable "InstanceOS" {
2424
}
2525

2626
variable "InstanceOSVersion" {
27-
default = "7.3"
27+
default = "7.4"
2828
}
2929

3030
provider "oci" {

docs/examples/compute/private_ip/private_ip.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ data "oci_identity_availability_domains" "ADs" {
3333
data "oci_core_images" "OLImageOCID" {
3434
compartment_id = "${var.compartment_ocid}"
3535
operating_system = "Oracle Linux"
36-
operating_system_version = "7.3"
36+
operating_system_version = "7.4"
3737
}
3838

3939
# Create Instance

docs/examples/load_balancer/lb_full/lb_full.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ resource "oci_core_security_list" "securitylist1" {
123123
data "oci_core_images" "image-list" {
124124
compartment_id = "${var.compartment_ocid}"
125125
operating_system = "Oracle Linux"
126-
operating_system_version = "7.3"
126+
operating_system_version = "7.4"
127127
}
128128

129129
resource "oci_core_instance" "instance1" {

0 commit comments

Comments
 (0)