Skip to content

Commit f77f781

Browse files
Merge pull request #1566 from oracle/release_gh
Releasing version v4.70.0
2 parents 8a25265 + 3e8a0c8 commit f77f781

File tree

13,391 files changed

+207433
-183041
lines changed

Some content is hidden

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

13,391 files changed

+207433
-183041
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ release:
6262
# If you want to manually examine the release before its live, uncomment this line:
6363
# draft: true
6464
changelog:
65-
skip: true
65+
skip: false
6666

6767
project_name: terraform-provider-oci

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
## 4.70.0 (April 07, 2022)
2+
3+
### Added
4+
- TF Samples for devops deployment service realated to B/G and Private Oke
5+
- Support for osp_gateway saas invoices
6+
- New APIs - GetRepoFileDiff and GetRepoFileLine
7+
- Compute List Shapes API returns number of network ports
8+
- Support for Marketplace Expansion
9+
- Support for KMS integration with VM
10+
- Support for JMS life cycle management
11+
- Support for private OKE environments and blue-green/canary stages
12+
- Support for BGP disable and BFD feature in Fastconnect service
13+
- Support for diagnostic reboot for compute VM instances
14+
- Alarms, Top Processes, zLinux support
15+
16+
### Bug Fix
17+
- updating certificates in load balancer SSL configuration
18+
- Data Safe test failure and resource discovery fixes
19+
120
## 4.69.0 (March 23, 2022)
221

322
### Added

examples/database/db_systems/db_vm/main.tf

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ variable "private_key_path" {
1515
variable "region" {
1616
}
1717

18+
variable "kms_key_id" {
19+
}
20+
21+
variable "kms_key_version_id" {
22+
}
23+
24+
variable "vault_id" {
25+
}
26+
1827
variable "compartment_ocid" {
1928
}
2029

@@ -24,7 +33,7 @@ variable "ssh_public_key" {
2433
variable "ssh_private_key" {
2534
}
2635

27-
# DBSystem specific
36+
# DBSystem specific
2837
variable "db_system_shape" {
2938
default = "VM.Standard2.1"
3039
}
@@ -277,6 +286,9 @@ resource "oci_database_db_system" "test_db_system" {
277286
db_home {
278287
database {
279288
admin_password = var.db_admin_password
289+
kms_key_version_id = var.kms_key_version_id
290+
kms_key_id = var.kms_key_id
291+
vault_id = var.vault_id
280292
db_name = "aTFdbVm"
281293
character_set = var.character_set
282294
ncharacter_set = var.n_character_set
File renamed without changes.
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
variable "tenancy_ocid" {
5+
}
6+
7+
variable "user_ocid" {
8+
}
9+
10+
variable "fingerprint" {
11+
}
12+
13+
variable "private_key_path" {
14+
}
15+
16+
variable "compartment_ocid" {
17+
}
18+
19+
variable "region" {
20+
}
21+
22+
provider "oci" {
23+
#version = "4.62.0"
24+
region = var.region
25+
tenancy_ocid = var.tenancy_ocid
26+
user_ocid = var.user_ocid
27+
fingerprint = var.fingerprint
28+
private_key_path = var.private_key_path
29+
}
30+
31+
resource "random_string" "topicname" {
32+
length = 10
33+
special = false
34+
}
35+
36+
resource "random_string" "projectname" {
37+
length = 10
38+
special = false
39+
}
40+
41+
resource "oci_ons_notification_topic" "test_notification_topic" {
42+
#Required
43+
compartment_id = var.compartment_ocid
44+
name = random_string.topicname.result
45+
}
46+
47+
resource "oci_devops_project" "test_project" {
48+
#Required
49+
compartment_id = var.compartment_ocid
50+
name = join("", [
51+
"A",
52+
random_string.projectname.result])
53+
notification_config {
54+
#Required
55+
topic_id = oci_ons_notification_topic.test_notification_topic.id
56+
}
57+
}
58+
59+
resource "oci_devops_deploy_pipeline" "test_deploy_pipeline" {
60+
#Required
61+
project_id = oci_devops_project.test_project.id
62+
63+
description = "description"
64+
display_name = "testDeployPipeline"
65+
deploy_pipeline_parameters {
66+
items {
67+
#Required
68+
name = "test"
69+
description = "test pipeline"
70+
}
71+
}
72+
}
73+
74+
resource "oci_devops_deploy_artifact" "test_deploy_artifact" {
75+
argument_substitution_mode = "SUBSTITUTE_PLACEHOLDERS"
76+
deploy_artifact_type = "DEPLOYMENT_SPEC"
77+
project_id = oci_devops_project.test_project.id
78+
79+
deploy_artifact_source {
80+
deploy_artifact_source_type = "INLINE"
81+
base64encoded_content = file("${path.module}/manifest/spec.yaml")
82+
}
83+
}
84+
85+
resource "oci_devops_deploy_environment" "test_deploy_instance_group_environment_a" {
86+
compute_instance_group_selectors {
87+
items {
88+
compute_instance_ids = [oci_core_instance.example_instance_a.id]
89+
selector_type = "INSTANCE_IDS"
90+
}
91+
}
92+
deploy_environment_type = "COMPUTE_INSTANCE_GROUP"
93+
project_id = oci_devops_project.test_project.id
94+
}
95+
96+
resource "oci_devops_deploy_environment" "test_deploy_instance_group_environment_b" {
97+
compute_instance_group_selectors {
98+
items {
99+
compute_instance_ids = [oci_core_instance.example_instance_b.id]
100+
selector_type = "INSTANCE_IDS"
101+
}
102+
}
103+
deploy_environment_type = "COMPUTE_INSTANCE_GROUP"
104+
project_id = oci_devops_project.test_project.id
105+
}
106+
107+
resource "oci_devops_deploy_stage" "test_blue_green_deploy_instance_group_stage" {
108+
deploy_environment_id_a = oci_devops_deploy_environment.test_deploy_instance_group_environment_a.id
109+
deploy_environment_id_b = oci_devops_deploy_environment.test_deploy_instance_group_environment_b.id
110+
deploy_pipeline_id = oci_devops_deploy_pipeline.test_deploy_pipeline.id
111+
deploy_stage_predecessor_collection {
112+
items {
113+
id = oci_devops_deploy_pipeline.test_deploy_pipeline.id
114+
}
115+
}
116+
deploy_stage_type = "COMPUTE_INSTANCE_GROUP_BLUE_GREEN_DEPLOYMENT"
117+
deployment_spec_deploy_artifact_id = oci_devops_deploy_artifact.test_deploy_artifact.id
118+
description = "description"
119+
display_name = "testBlueGreenDeployInstanceGroupStage"
120+
failure_policy {
121+
failure_count = "1"
122+
policy_type = "COMPUTE_INSTANCE_GROUP_FAILURE_POLICY_BY_COUNT"
123+
}
124+
freeform_tags = {
125+
"bar-key" = "value"
126+
}
127+
test_load_balancer_config {
128+
backend_port = "8080"
129+
listener_name = oci_load_balancer_listener.test_load_balancer_listener.name
130+
load_balancer_id = oci_load_balancer_load_balancer.test_load_balancer.id
131+
}
132+
production_load_balancer_config {
133+
backend_port = "8081"
134+
listener_name = oci_load_balancer_listener.prod_load_balancer_listener.name
135+
load_balancer_id = oci_load_balancer_load_balancer.prod_load_balancer.id
136+
}
137+
rollback_policy {
138+
policy_type = "AUTOMATED_STAGE_ROLLBACK_POLICY"
139+
}
140+
rollout_policy {
141+
batch_count = "5"
142+
batch_delay_in_seconds = "10"
143+
policy_type = "COMPUTE_INSTANCE_GROUP_LINEAR_ROLLOUT_POLICY_BY_COUNT"
144+
}
145+
}
146+
147+
resource "oci_devops_deploy_stage" "test_blue_green_traffic_shift_instance_group_stage" {
148+
deploy_pipeline_id = oci_devops_deploy_pipeline.test_deploy_pipeline.id
149+
deploy_stage_predecessor_collection {
150+
items {
151+
id = oci_devops_deploy_stage.test_blue_green_deploy_instance_group_stage.id
152+
}
153+
}
154+
deploy_stage_type = "COMPUTE_INSTANCE_GROUP_BLUE_GREEN_TRAFFIC_SHIFT"
155+
compute_instance_group_blue_green_deployment_deploy_stage_id = oci_devops_deploy_stage.test_blue_green_deploy_instance_group_stage.id
156+
description = "description"
157+
display_name = "testBlueGreenTrafficShiftInstanceGroupStage"
158+
freeform_tags = {
159+
"bar-key" = "value"
160+
}
161+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 1.0
2+
component: deployment
3+
runAs: root
4+
env:
5+
variables:
6+
version: "v1.0"
7+
files:
8+
# This section is to define how the files in the artifact shall
9+
# be put on the compute instance
10+
- source: /
11+
destination: /tmp/genericArtifactDemo
12+
steps:
13+
# This section is to define the scripts that each step shall run on the instance after file copy.
14+
- stepType: Command
15+
name: Install Apache Web Server
16+
command: ./script.sh
17+
runAs: root
18+
timeoutInSeconds: 800

0 commit comments

Comments
 (0)