Skip to content

Commit 172853c

Browse files
authored
Release 3.21.0
Release 3.21.0
2 parents b616858 + 847f2fd commit 172853c

File tree

119 files changed

+3105
-641
lines changed

Some content is hidden

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

119 files changed

+3105
-641
lines changed

CHANGELOG.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
## 3.20.1 (Unreleased)
1+
## 3.21.0 (Unreleased)
2+
3+
### Added
4+
- Support for additional dbHomes/databases in a BM Db System
5+
- Support for tags in databases
6+
- Support for updates to database auto_backup_enabled
7+
- Support for provider service keys in Fast Connect Provider Services
8+
- Singular data sources for User, Group, File Storage Snapshot, Private IP and Virtual Cloud Network (VCN).
9+
- Support for authentication policy introduced in v3.18.0 is now generally available.
10+
11+
### Fixed
12+
- Virtual Circuit update failures by handling default values
13+
- Importing `assign_public_ip` for Core vnic attachment
14+
215
## 3.20.0 (March 27, 2019)
316

417
### Added
@@ -30,6 +43,7 @@
3043
- Support for updating the compartment on a Tag Namespace
3144
- Support for exadata io resource management config for DB system
3245
- Support `email` attribute for `oci_identity_user` resource
46+
- Support for authentication policy
3347

3448
### Fixed
3549
- Marked oci_identity_ui_password resource as not importable
@@ -41,7 +55,7 @@
4155

4256
### Added
4357
- Add singular Availability Domain data source with related example updates
44-
- Support for Monitoring service
58+
- Support for Monitoring service
4559
- Adding ability to disable monitoring in instances
4660
- Adding support for Metrics-based Dynamic Auto-scaling
4761
- Support for listing and specifying Fault Domains in Database resources
@@ -56,7 +70,7 @@
5670
- Support for the tagging of applicable KMS resources
5771

5872
### Fixed
59-
- DNS Record now requires domain and rtype as mandatory arguments. Managing DNS record resources now requires DNS_RECORD* level policy entitlements instead of DNS_ZONE*. [Permissions List](https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/dnspolicyreference.htm)
73+
- DNS Record now requires domain and rtype as mandatory arguments. Managing DNS record resources now requires DNS_RECORD* level policy entitlements instead of DNS_ZONE*. [Permissions List](https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/dnspolicyreference.htm)
6074

6175
## 3.15.0 (February 12, 2019)
6276

examples/budget/main.tf

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
22

33
/*
4-
* This example shows how to use the budget resource.
4+
* This example shows how to use the budget and alert rule resources.
55
*/
66

77
variable "tenancy_ocid" {}
@@ -37,25 +37,24 @@ data "oci_budget_budget" "budget1" {
3737
}
3838

3939
output "budget" {
40-
value = <<EOF
41-
42-
amount = "${data.oci_budget_budget.budget1.amount}"
43-
compartment_id = "${data.oci_budget_budget.budget1.compartment_id}"
44-
reset_period = "${data.oci_budget_budget.budget1.reset_period}"
45-
target_compartment_id = "${data.oci_budget_budget.budget1.target_compartment_id}"
46-
description = "${data.oci_budget_budget.budget1.description}"
47-
display_name = "${data.oci_budget_budget.budget1.display_name}"
48-
alert_rule_count = "${data.oci_budget_budget.budget1.alert_rule_count}"
49-
state = "${data.oci_budget_budget.budget1.state}"
50-
time_created = "${data.oci_budget_budget.budget1.time_created}"
51-
time_updated = "${data.oci_budget_budget.budget1.time_updated}"
52-
version = "${data.oci_budget_budget.budget1.version}"
53-
EOF
54-
55-
# These values are not always present
56-
// actual_spend = "${data.oci_budget_budget.budget1.actual_spend}"
57-
// forecasted_spend = "${data.oci_budget_budget.budget1.forecasted_spend}"
58-
// time_spend_computed = "${data.oci_budget_budget.budget1.time_spend_computed}"
40+
value = {
41+
amount = "${data.oci_budget_budget.budget1.amount}"
42+
compartment_id = "${data.oci_budget_budget.budget1.compartment_id}"
43+
reset_period = "${data.oci_budget_budget.budget1.reset_period}"
44+
target_compartment_id = "${data.oci_budget_budget.budget1.target_compartment_id}"
45+
description = "${data.oci_budget_budget.budget1.description}"
46+
display_name = "${data.oci_budget_budget.budget1.display_name}"
47+
alert_rule_count = "${data.oci_budget_budget.budget1.alert_rule_count}"
48+
state = "${data.oci_budget_budget.budget1.state}"
49+
time_created = "${data.oci_budget_budget.budget1.time_created}"
50+
time_updated = "${data.oci_budget_budget.budget1.time_updated}"
51+
version = "${data.oci_budget_budget.budget1.version}"
52+
53+
# These values are not always present
54+
// actual_spend = "${data.oci_budget_budget.budget1.actual_spend}"
55+
// forecasted_spend = "${data.oci_budget_budget.budget1.forecasted_spend}"
56+
// time_spend_computed = "${data.oci_budget_budget.budget1.time_spend_computed}"
57+
}
5958
}
6059

6160
data "oci_budget_budgets" "test_budgets" {
@@ -95,22 +94,21 @@ data "oci_budget_alert_rules" "test_alert_rules" {
9594
}
9695

9796
output "alert_rule" {
98-
value = <<EOF
99-
100-
budget_id = "${data.oci_budget_alert_rule.test_alert_rule.budget_id}"
101-
recipients = "${data.oci_budget_alert_rule.test_alert_rule.recipients}"
102-
description = "${data.oci_budget_alert_rule.test_alert_rule.description}"
103-
display_name = "${data.oci_budget_alert_rule.test_alert_rule.display_name}"
104-
message = "${data.oci_budget_alert_rule.test_alert_rule.message}"
105-
recipients = "${data.oci_budget_alert_rule.test_alert_rule.recipients}"
106-
state = "${data.oci_budget_alert_rule.test_alert_rule.state}"
107-
threshold = "${data.oci_budget_alert_rule.test_alert_rule.threshold}"
108-
threshold_type = "${data.oci_budget_alert_rule.test_alert_rule.threshold_type}"
109-
time_created = "${data.oci_budget_alert_rule.test_alert_rule.time_created}"
110-
time_updated = "${data.oci_budget_alert_rule.test_alert_rule.time_updated}"
111-
type = "${data.oci_budget_alert_rule.test_alert_rule.type}"
112-
version = "${data.oci_budget_alert_rule.test_alert_rule.version}"
113-
EOF
97+
value = {
98+
budget_id = "${data.oci_budget_alert_rule.test_alert_rule.budget_id}"
99+
recipients = "${data.oci_budget_alert_rule.test_alert_rule.recipients}"
100+
description = "${data.oci_budget_alert_rule.test_alert_rule.description}"
101+
display_name = "${data.oci_budget_alert_rule.test_alert_rule.display_name}"
102+
message = "${data.oci_budget_alert_rule.test_alert_rule.message}"
103+
recipients = "${data.oci_budget_alert_rule.test_alert_rule.recipients}"
104+
state = "${data.oci_budget_alert_rule.test_alert_rule.state}"
105+
threshold = "${data.oci_budget_alert_rule.test_alert_rule.threshold}"
106+
threshold_type = "${data.oci_budget_alert_rule.test_alert_rule.threshold_type}"
107+
time_created = "${data.oci_budget_alert_rule.test_alert_rule.time_created}"
108+
time_updated = "${data.oci_budget_alert_rule.test_alert_rule.time_updated}"
109+
type = "${data.oci_budget_alert_rule.test_alert_rule.type}"
110+
version = "${data.oci_budget_alert_rule.test_alert_rule.version}"
111+
}
114112
}
115113

116114
data "oci_budget_alert_rule" "test_alert_rule" {

examples/compute/instance/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ variable "tag_namespace_description" {
5757
}
5858

5959
variable "tag_namespace_name" {
60-
default = "exampletagns"
60+
default = "testexamples-tag-namespace"
6161
}
6262

6363
variable "volume_attachment_device" {

examples/compute/windows/README.md

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,11 @@ This example contains Terraform configuration to provision a virtual machine in
2828

2929
## WinRM
3030

31-
- While WinRM is enabled on the images, if you plan to use your own images, you need to configure it using following commands.
32-
33-
```powershell
34-
winrm quickconfig
35-
Enable-PSRemoting
36-
37-
winrm set winrm/config/client/auth '@{Basic="true"}'
38-
winrm set winrm/config/service/auth '@{Basic="true"}'
39-
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
40-
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}'
41-
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
42-
43-
netsh advfirewall firewall add rule name="WinRM HTTP" protocol=TCP dir=in profile=any localport=5985 remoteip=any localip=any action=allow
44-
netsh advfirewall firewall add rule name="WinRM HTTPS" protocol=TCP dir=in profile=any localport=5986 remoteip=any localip=any action=allow
45-
46-
net stop winrm
47-
sc.exe config winrm start=auto
48-
net start winrm
49-
```
50-
51-
- Strongly consider the security aspects of allowing unencrypted connections (HTTP). This example shows how to create a self-signed certificate using Cloudbase-Init to configure WinRM for HTTPS communication
52-
- Based on what ports you have configured for RDP and WinRM you want to setup the Security List for your VCN to allow those ports, this example covers these ports:
31+
- WinRM is enabled by default on Oracle Cloud Infrastructure (OCI) published images. If you plan to use custom images, you may need to enable and configure WinRM on those images.
32+
- This example uses a self-signed certificate created during Cloudbase-Init to configure WinRM for HTTPS communication. You may need to switch to using CA signed certificate before using WinRM in production.
33+
- To learn more about using WinRM in OCI refer this [blog](https://blogs.oracle.com/cloud-infrastructure/windows-custom-startup-scripts-and-cloud-init-on-oracle-cloud-infrastructure) article.
34+
- Ensure that the Security List for your VCN allows the ports configured for WinRM and/or RDP, for example:
5335
- 3389 - RDP
54-
- 5985 - WinRM HTTP
5536
- 5986 - WinRM HTTPS
5637

5738
## Terraform
@@ -68,8 +49,8 @@ This example contains Terraform configuration to provision a virtual machine in
6849
- The VM instance Cloud-Init metadata that is passed to LaunchInstanceDetails and then read over in VM is just Base64 encoded, you may want to transfer the new password in a more secure way or change it through another remote-exec that can run post Cloudbase-Init. Further, the example also has the passwords stored in the local state file.
6950
- Refer Terraform recommendations for [Sensitive Data](https://www.terraform.io/docs/state/sensitive-data.html)
7051
- The example covers running various Powershell commands, but for a more reliable solution, you may want to add enough retries and error reporting for setup resiliency
71-
- While setting up HTTP over BasicAuth is easy, it is not a recommended way to connecting to these VMs, consider using HTTPS by configuring WinRM HTTPS listener using your own certificate
72-
- If you are facing certificate based errors for WinRM HTTPS connection it is probably due to using the self-signed certificate using New-SelfSignedCertificate that WinRM does not find compatible in newer operating systems
52+
- While setting up HTTP over BasicAuth is easy, it is not a recommended way to connecting to these VMs, consider using HTTPS by configuring WinRM HTTPS listener using a CA signed certificate instead.
53+
- If you are facing certificate based errors for WinRM HTTPS connection it is probably due to using the self-signed certificate using `New-SelfSignedCertificate` that WinRM does not find compatible in newer operating systems
7354
- Ideally you should use CA based certificate for configuring WinRM
7455
- Alternatively, you can use this Ansible published script [ConfigureRemotingForAnsible.ps1](https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1) to generate a legacy self-signed certificate and configure WinRM to use same.
7556
- This entire script can be passed as an additional part in `template_cloudinit_config` to configure WinRM for HTTPS with a self-signed certificate. If you do so, remove the certificate based section from `cloudinit.ps1` in this example

examples/database/db_systems/resources.tf

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ resource "oci_database_db_system" "test_db_system" {
1818
db_backup_config {
1919
auto_backup_enabled = true
2020
}
21+
22+
freeform_tags = {
23+
"Department" = "Finance"
24+
}
2125
}
2226

2327
db_version = "${var.db_version}"
@@ -44,6 +48,31 @@ resource "oci_database_db_system" "test_db_system" {
4448
}
4549
}
4650

51+
// The creation of an oci_database_db_system requires that it be created with exactly one oci_database_db_home. Therefore the first db home will have to be a property of the db system resource and any further db homes to be added to the db system will have to be added as first class resources using "oci_database_db_home".
52+
resource "oci_database_db_home" "test_db_home" {
53+
db_system_id = "${oci_database_db_system.test_db_system.id}"
54+
55+
database {
56+
admin_password = "${var.db_admin_password}"
57+
db_name = "${var.db_home_db_name}3"
58+
character_set = "${var.character_set}"
59+
ncharacter_set = "${var.n_character_set}"
60+
db_workload = "${var.db_workload}"
61+
pdb_name = "${var.pdb_name}"
62+
63+
freeform_tags = {
64+
"Department" = "Finance"
65+
}
66+
67+
db_backup_config {
68+
auto_backup_enabled = false
69+
}
70+
}
71+
72+
db_version = "${var.db_version}"
73+
display_name = "${var.db_home_display_name}"
74+
}
75+
4776
resource "oci_database_backup" "test_backup" {
4877
depends_on = ["oci_database_db_system.test_db_system"]
4978
database_id = "${data.oci_database_databases.databases.databases.0.id}"

examples/database/db_systems/variables.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ variable "availability_domain" {
1717

1818
# DBSystem specific
1919
variable "db_system_shape" {
20-
default = "VM.Standard2.1"
20+
default = "BM.DenseIO2.52"
2121
}
2222

2323
variable "cpu_core_count" {
@@ -36,6 +36,10 @@ variable "db_name" {
3636
default = "aTFdb"
3737
}
3838

39+
variable "db_home_db_name" {
40+
default = "aTFdb2"
41+
}
42+
3943
variable "db_version" {
4044
default = "12.1.0.2"
4145
}

examples/fast_connect/variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ variable "virtual_circuit_display_name" {
4141
}
4242

4343
variable "virtual_circuit_public_prefixes_cidr_block" {
44-
default = "0.0.0.0/6"
44+
default = "11.0.0.0/24"
4545
}
4646

4747
variable "virtual_circuit_public_prefixes_cidr_block2" {
48-
default = "206.209.218.0/25"
48+
default = "11.0.1.0/24"
4949
}
5050

5151
variable "virtual_circuit_public_prefixes_cidr_block3" {
52-
default = "206.209.219.0/24"
52+
default = "11.0.2.0/24"
5353
}
5454

5555
variable "virtual_circuit_region" {

examples/identity/tags.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "oci_identity_tag_namespace" "tag-namespace1" {
44
#Required
55
compartment_id = "${var.tenancy_ocid}"
66
description = "Just a test"
7-
name = "exampletagns"
7+
name = "testexamples-tag-namespace"
88

99
is_retired = false
1010
}

examples/monitoring/alarms/alarms.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ variable "tag_namespace_description" {
106106
}
107107

108108
variable "tag_namespace_name" {
109-
default = "exampletagns"
109+
default = "testexamples-tag-namespace"
110110
}
111111

112112
provider "oci" {

examples/networking/service_gateway/service_gateway.tf

Lines changed: 20 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -15,50 +15,26 @@ provider "oci" {
1515
region = "${var.region}"
1616
}
1717

18-
variable "vcn_cidr_block" {
19-
default = "10.0.0.0/16"
20-
}
21-
22-
variable "vcn_display_name" {
23-
default = "displayName"
24-
}
25-
26-
variable "vcn_dns_label" {
27-
default = "dnslabel"
28-
}
29-
30-
variable "service_gateway_display_name" {
31-
default = "displayName2"
32-
}
33-
34-
variable "service_gateway_state" {
35-
default = "AVAILABLE"
36-
}
37-
38-
variable "tcp_protocol" {
39-
default = "6"
18+
data "oci_core_services" "test_services" {
19+
filter {
20+
name = "name"
21+
values = ["All .* Services In Oracle Services Network"]
22+
regex = true
23+
}
4024
}
4125

42-
variable "ssh_port" {
43-
default = "22"
26+
output "services" {
27+
value = ["${data.oci_core_services.test_services.services}"]
4428
}
4529

4630
resource "oci_core_vcn" "test_vcn" {
4731
#Required
48-
cidr_block = "${var.vcn_cidr_block}"
32+
cidr_block = "10.0.0.0/16"
4933
compartment_id = "${var.compartment_ocid}"
5034

5135
#Optional
52-
display_name = "${var.vcn_display_name}"
53-
dns_label = "${var.vcn_dns_label}"
54-
}
55-
56-
data "oci_core_services" "test_services" {
57-
filter {
58-
name = "name"
59-
values = [".*Object.*Storage"]
60-
regex = true
61-
}
36+
display_name = "testVcn"
37+
dns_label = "dnslabel"
6238
}
6339

6440
resource "oci_core_service_gateway" "test_service_gateway" {
@@ -72,18 +48,22 @@ resource "oci_core_service_gateway" "test_service_gateway" {
7248
vcn_id = "${oci_core_vcn.test_vcn.id}"
7349

7450
#Optional
75-
display_name = "${var.service_gateway_display_name}"
51+
display_name = "testServiceGateway"
7652
}
7753

7854
data "oci_core_service_gateways" "test_service_gateways" {
7955
#Required
8056
compartment_id = "${var.compartment_ocid}"
8157

8258
#Optional
83-
state = "${var.service_gateway_state}"
59+
state = "AVAILABLE"
8460
vcn_id = "${oci_core_vcn.test_vcn.id}"
8561
}
8662

63+
output "service_gateways" {
64+
value = ["${data.oci_core_service_gateways.test_service_gateways.service_gateways}"]
65+
}
66+
8767
resource "oci_core_route_table" "test_route_table" {
8868
compartment_id = "${var.compartment_ocid}"
8969
vcn_id = "${oci_core_vcn.test_vcn.id}"
@@ -108,12 +88,12 @@ resource "oci_core_security_list" "test_security_list" {
10888
}
10989

11090
ingress_security_rules {
111-
protocol = "${var.tcp_protocol}"
91+
protocol = "6"
11292
source = "0.0.0.0/0"
11393

11494
tcp_options {
115-
max = "${var.ssh_port}"
116-
min = "${var.ssh_port}"
95+
max = "22"
96+
min = "22"
11797
}
11898
}
11999
}

0 commit comments

Comments
 (0)