Skip to content

Commit b98b916

Browse files
Terraform Team AutomationMonica Joshi
authored andcommitted
Added - Support for Java Management Service 9.0
1 parent 3fc5d3d commit b98b916

File tree

72 files changed

+2093
-620
lines changed

Some content is hidden

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

72 files changed

+2093
-620
lines changed

examples/jms/agent_installer.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
data "oci_jms_agent_installers" "test_agent_installers" {
5+
#either one of these are necessary
6+
compartment_id = var.compartment_ocid
7+
fleet_id = var.fleet_ocid
8+
9+
#optional
10+
os_family = "LINUX"
11+
platform_architecture = "X86_64"
12+
}

examples/jms/announcement.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
variable "summary_contains" {
5+
default = "example summary value"
6+
}
7+
8+
data "oci_jms_announcements" "test_jms_announcements" {
9+
#Optional
10+
summary_contains = var.summary_contains
11+
time_start = var.time_start
12+
time_end = var.time_end
13+
}

examples/jms/announcements/main.tf

Lines changed: 0 additions & 31 deletions
This file was deleted.

examples/jms/fleet.tf

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# // Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# // Licensed under the Mozilla Public License v2.0
3+
4+
resource "oci_jms_fleet" "example_fleet" {
5+
#Required
6+
compartment_id = var.compartment_ocid
7+
display_name = "Example Fleet"
8+
inventory_log {
9+
log_group_id = var.fleet_log_group_ocid
10+
log_id = var.fleet_inventory_log_ocid
11+
}
12+
13+
#Optional
14+
description = "Example Fleet created by Terraform"
15+
freeform_tags = var.fleet_freeform_tags
16+
operation_log {
17+
log_group_id = var.fleet_log_group_ocid
18+
log_id = var.fleet_operation_log_ocid
19+
}
20+
21+
# Create the Tag namespace in OCI before enabling
22+
# See user guide: https://docs.oracle.com/en-us/iaas/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm
23+
# defined_tags = var.fleet_defined_tags
24+
}
25+
26+
data "oci_jms_fleets" "example_fleets" {
27+
28+
#Optional
29+
compartment_id = var.compartment_ocid
30+
id = oci_jms_fleet.example_fleet.id
31+
display_name = oci_jms_fleet.example_fleet.display_name
32+
display_name_contains = oci_jms_fleet.example_fleet.display_name
33+
state = oci_jms_fleet.example_fleet.state
34+
}
35+
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
resource "oci_jms_fleet" "example_fleet_with_advanced_features" {
5+
#Required
6+
compartment_id = var.compartment_ocid
7+
display_name = "Example Fleet with Advanced Features"
8+
inventory_log {
9+
log_group_id = var.fleet_log_group_ocid
10+
log_id = var.fleet_inventory_log_ocid
11+
}
12+
13+
#Optional
14+
description = "Example Fleet with Advanced Features created by Terraform"
15+
freeform_tags = var.fleet_freeform_tags
16+
operation_log {
17+
log_group_id = var.fleet_log_group_ocid
18+
log_id = var.fleet_operation_log_ocid
19+
}
20+
21+
# Create the Tag namespace in OCI before enabling
22+
# See user guide: https://docs.oracle.com/en-us/iaas/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm
23+
# defined_tags = var.fleet_defined_tags
24+
}
25+
26+
resource "oci_jms_fleet_advanced_feature_configuration" "example_fleet_advanced_feature_configuration" {
27+
#Required
28+
fleet_id = oci_jms_fleet.example_fleet_with_advanced_features.id
29+
30+
#Optional
31+
advanced_usage_tracking {
32+
is_enabled = "true"
33+
}
34+
analytic_bucket_name = var.analytic_bucket_name
35+
analytic_namespace = var.analytic_bucket_namespace
36+
crypto_event_analysis {
37+
is_enabled = "true"
38+
summarized_events_log {
39+
log_group_id = var.fleet_log_group_ocid
40+
log_id = var.crypto_event_log_ocid
41+
}
42+
}
43+
java_migration_analysis {
44+
is_enabled = "true"
45+
}
46+
jfr_recording {
47+
is_enabled = "true"
48+
}
49+
lcm {
50+
is_enabled = "true"
51+
post_installation_actions {
52+
add_logging_handler = "false"
53+
disabled_tls_versions = ["TLS_1_0"]
54+
global_logging_level = "ALL"
55+
minimum_key_size_settings {
56+
certpath {
57+
key_size = "2048"
58+
name = "RSA"
59+
}
60+
jar {
61+
key_size = "2048"
62+
name = "RSA"
63+
}
64+
tls {
65+
key_size = "2048"
66+
name = "RSA"
67+
}
68+
}
69+
proxies {
70+
ftp_proxy_host = "example-ftp-proxy-host"
71+
ftp_proxy_port = "10"
72+
http_proxy_host = "example-http-proxy-host"
73+
http_proxy_port = "10"
74+
https_proxy_host = "example-https-proxy-host"
75+
https_proxy_port = "10"
76+
socks_proxy_host = "example-socks-proxy-host"
77+
socks_proxy_port = "10"
78+
use_system_proxies = "false"
79+
}
80+
should_replace_certificates_operating_system = "false"
81+
}
82+
}
83+
performance_tuning_analysis {
84+
is_enabled = "true"
85+
}
86+
}
87+
88+
data "oci_jms_fleet_advanced_feature_configuration" "test_fleet_advanced_feature_configuration" {
89+
#Required
90+
fleet_id = oci_jms_fleet.example_fleet_with_advanced_features.id
91+
}

examples/jms/fleet_advanced_feature_configuration/main.tf

Lines changed: 0 additions & 102 deletions
This file was deleted.

examples/jms/fleet_blocklist.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
variable "fleet_blocklist_operation" {
5+
default = "DELETE_JAVA_INSTALLATION"
6+
}
7+
8+
data "oci_jms_fleet_blocklists" "test_fleet_blocklists" {
9+
#Required
10+
fleet_id = var.fleet_ocid
11+
12+
#Optional
13+
managed_instance_id = var.managed_instance_ocid
14+
operation = var.fleet_blocklist_operation
15+
}

examples/jms/fleet_blocklists/main.tf

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)