Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit ed2feb7

Browse files
committed
First release
1 parent c39bda0 commit ed2feb7

24 files changed

+186
-12
lines changed

cluster/multi-ad/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If you don't have the required permissions and quota, contact your tenancy admin
1212

1313
## Deploy Using Oracle Resource Manager
1414

15-
1. Click [![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://console.us-phoenix-1.oraclecloud.com/resourcemanager/stacks/create?region=home&zipUrl=https://github.com/oracle-quickstart/oci-elastic/raw/master/cluster/multi-ad/resource-manager/oci-elastic-multi-ad.zip)
15+
1. Click [![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?region=home&zipUrl=https://github.com/oracle-quickstart/oci-elastic/releases/latest/download/oci-elastic-multi-ad-stack-latest.zip)
1616

1717
If you aren't already signed in, when prompted, enter the tenancy and user credentials.
1818

cluster/multi-ad/compute.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ resource "oci_core_instance" "BastionHost" {
1919
source_type = "image"
2020
}
2121

22+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
23+
2224
timeouts {
2325
create = var.create_timeout
2426
}
@@ -46,6 +48,8 @@ resource "oci_core_instance" "ESMasterNode1" {
4648
boot_volume_size_in_gbs = var.BootVolSize
4749
}
4850

51+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
52+
4953
timeouts {
5054
create = var.create_timeout
5155
}
@@ -73,6 +77,8 @@ resource "oci_core_instance" "ESMasterNode2" {
7377
boot_volume_size_in_gbs = var.BootVolSize
7478
}
7579

80+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
81+
7682
timeouts {
7783
create = var.create_timeout
7884
}
@@ -100,6 +106,8 @@ resource "oci_core_instance" "ESMasterNode3" {
100106
boot_volume_size_in_gbs = var.BootVolSize
101107
}
102108

109+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
110+
103111
timeouts {
104112
create = var.create_timeout
105113
}
@@ -126,6 +134,8 @@ resource "oci_core_instance" "ESDataNode1" {
126134
boot_volume_size_in_gbs = var.BootVolSize
127135
}
128136

137+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
138+
129139
timeouts {
130140
create = var.create_timeout
131141
}
@@ -153,6 +163,8 @@ resource "oci_core_instance" "ESDataNode2" {
153163
boot_volume_size_in_gbs = var.BootVolSize
154164
}
155165

166+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
167+
156168
timeouts {
157169
create = var.create_timeout
158170
}
@@ -180,6 +192,8 @@ resource "oci_core_instance" "ESDataNode3" {
180192
boot_volume_size_in_gbs = var.BootVolSize
181193
}
182194

195+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
196+
183197
timeouts {
184198
create = var.create_timeout
185199
}
@@ -207,6 +221,8 @@ resource "oci_core_instance" "ESDataNode4" {
207221
boot_volume_size_in_gbs = var.BootVolSize
208222
}
209223

224+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
225+
210226
timeouts {
211227
create = var.create_timeout
212228
}

cluster/multi-ad/lbaas.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ resource "oci_load_balancer_load_balancer" "ES-LB" {
1313
oci_core_instance.ESMasterNode2,
1414
oci_core_instance.ESMasterNode3,
1515
]
16+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
1617
}
1718

1819
resource "oci_load_balancer_backend_set" "ESKibana" {

cluster/multi-ad/network.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ resource "oci_core_virtual_network" "OCI_ES_VCN" {
33
compartment_id = var.compartment_ocid
44
display_name = "OCI_ES_VCN"
55
dns_label = "OCIESVCN"
6+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
67
}
78

89
resource "oci_core_internet_gateway" "OCI_ES_IGW" {
910
compartment_id = var.compartment_ocid
1011
display_name = "OCI_ES_IGW"
1112
vcn_id = oci_core_virtual_network.OCI_ES_VCN.id
13+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
1214
}
1315

1416
resource "oci_core_route_table" "OCI_PUB_RTB" {
@@ -21,6 +23,7 @@ resource "oci_core_route_table" "OCI_PUB_RTB" {
2123
destination_type = "CIDR_BLOCK"
2224
network_entity_id = oci_core_internet_gateway.OCI_ES_IGW.id
2325
}
26+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
2427
}
2528

2629
resource "oci_core_route_table" "OCI_ES_RTB" {
@@ -33,6 +36,7 @@ resource "oci_core_route_table" "OCI_ES_RTB" {
3336
destination_type = "CIDR_BLOCK"
3437
network_entity_id = data.oci_core_private_ips.BastionPrivateIPs.private_ips[0]["id"]
3538
}
39+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
3640
}
3741

3842
resource "oci_core_security_list" "LBSecList" {
@@ -63,6 +67,7 @@ resource "oci_core_security_list" "LBSecList" {
6367
protocol = "6"
6468
source = "0.0.0.0/0"
6569
}
70+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
6671
}
6772

6873
resource "oci_core_security_list" "PrivSecList" {
@@ -111,6 +116,7 @@ resource "oci_core_security_list" "PrivSecList" {
111116
protocol = "6"
112117
source = var.VCN-CIDR
113118
}
119+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
114120
}
115121

116122
resource "oci_core_security_list" "BastionSecList" {
@@ -136,6 +142,7 @@ resource "oci_core_security_list" "BastionSecList" {
136142
protocol = "all"
137143
source = var.VCN-CIDR
138144
}
145+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
139146
}
140147

141148
resource "oci_core_subnet" "LBSubnetAD1" {
@@ -148,6 +155,7 @@ resource "oci_core_subnet" "LBSubnetAD1" {
148155
security_list_ids = [oci_core_security_list.LBSecList.id]
149156
dhcp_options_id = oci_core_virtual_network.OCI_ES_VCN.default_dhcp_options_id
150157
dns_label = "lbad1"
158+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
151159
}
152160

153161
resource "oci_core_subnet" "LBSubnetAD2" {
@@ -160,6 +168,7 @@ resource "oci_core_subnet" "LBSubnetAD2" {
160168
security_list_ids = [oci_core_security_list.LBSecList.id]
161169
dhcp_options_id = oci_core_virtual_network.OCI_ES_VCN.default_dhcp_options_id
162170
dns_label = "lbad2"
171+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
163172
}
164173

165174
resource "oci_core_subnet" "PrivSubnetAD1" {
@@ -171,6 +180,7 @@ resource "oci_core_subnet" "PrivSubnetAD1" {
171180
route_table_id = oci_core_route_table.OCI_ES_RTB.id
172181
security_list_ids = [oci_core_security_list.PrivSecList.id]
173182
dhcp_options_id = oci_core_virtual_network.OCI_ES_VCN.default_dhcp_options_id
183+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
174184

175185
#prohibit_public_ip_on_vnic = "true"
176186
dns_label = "privad1"
@@ -185,6 +195,7 @@ resource "oci_core_subnet" "PrivSubnetAD2" {
185195
route_table_id = oci_core_route_table.OCI_ES_RTB.id
186196
security_list_ids = [oci_core_security_list.PrivSecList.id]
187197
dhcp_options_id = oci_core_virtual_network.OCI_ES_VCN.default_dhcp_options_id
198+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
188199

189200
#prohibit_public_ip_on_vnic = "true"
190201
dns_label = "privad2"
@@ -199,6 +210,7 @@ resource "oci_core_subnet" "PrivSubnetAD3" {
199210
route_table_id = oci_core_route_table.OCI_ES_RTB.id
200211
security_list_ids = [oci_core_security_list.PrivSecList.id]
201212
dhcp_options_id = oci_core_virtual_network.OCI_ES_VCN.default_dhcp_options_id
213+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
202214

203215
#prohibit_public_ip_on_vnic = "true"
204216
dns_label = "privad3"
@@ -213,6 +225,7 @@ resource "oci_core_subnet" "BastionSubnetAD1" {
213225
route_table_id = oci_core_route_table.OCI_PUB_RTB.id
214226
security_list_ids = [oci_core_security_list.BastionSecList.id]
215227
dhcp_options_id = oci_core_virtual_network.OCI_ES_VCN.default_dhcp_options_id
228+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
216229
dns_label = "bastsub"
217230
}
218231

cluster/multi-ad/remote.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
data "template_file" "setup_esbootstrap" {
2-
template = file("${var.ESBootStrap}")
2+
template = file(var.ESBootStrap)
33

44
vars = {
55
elasticsearch_download_url = var.elasticsearch_download_url

cluster/multi-ad/schema.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ variableGroups:
4949
- ESDataPort2
5050
- create_timeout
5151
- volume_attachment_attachment_type
52+
- release
5253

5354
variables:
5455

@@ -265,6 +266,12 @@ variables:
265266
required: false
266267
visible: false
267268

269+
release:
270+
type: string
271+
required: false
272+
visible: false
273+
title: "Reference Architecture Release (OCI Architecture Center)"
274+
268275
outputs:
269276

270277
BastionPublicIP:

cluster/multi-ad/tags.tf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
resource "oci_identity_tag_namespace" "ArchitectureCenterTagNamespace" {
2+
compartment_id = var.compartment_ocid
3+
description = "ArchitectureCenterTagNamespace"
4+
name = "ArchitectureCenter\\deploy-elk"
5+
6+
provisioner "local-exec" {
7+
command = "sleep 10"
8+
}
9+
}
10+
11+
resource "oci_identity_tag" "ArchitectureCenterTag" {
12+
description = "ArchitectureCenterTag"
13+
name = "release"
14+
tag_namespace_id = oci_identity_tag_namespace.ArchitectureCenterTagNamespace.id
15+
16+
validator {
17+
validator_type = "ENUM"
18+
values = ["release", "1.0"]
19+
}
20+
21+
provisioner "local-exec" {
22+
command = "sleep 20"
23+
}
24+
25+
}

cluster/multi-ad/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ variable "private_key_path" {}
55
variable "region" {}
66
variable "compartment_ocid" {}
77

8+
variable "release" {
9+
description = "Reference Architecture Release (OCI Architecture Center)"
10+
default = "1.0"
11+
}
12+
813
variable "BastionShape" {
914
default = "VM.Standard2.1"
1015
}

cluster/single-ad/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you don't have the required permissions and quota, contact your tenancy admin
1414

1515
## Deploy Using Oracle Resource Manager
1616

17-
1. Click [![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://console.us-phoenix-1.oraclecloud.com/resourcemanager/stacks/create?region=home&zipUrl=https://github.com/oracle-quickstart/oci-elastic/raw/master/cluster/single-ad/resource-manager/oci-elastic-single-ad.zip)
17+
1. Click [![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?region=home&zipUrl=https://github.com/oracle-quickstart/oci-elastic/releases/latest/download/oci-elastic-single-ad-stack-latest.zip)
1818

1919
If you aren't already signed in, when prompted, enter the tenancy and user credentials.
2020

cluster/single-ad/compute.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ resource "oci_core_instance" "BastionHost" {
2020
source_type = "image"
2121
}
2222

23+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
24+
2325
timeouts {
2426
create = var.create_timeout
2527
}
@@ -47,6 +49,8 @@ resource "oci_core_instance" "ESMasterNode1" {
4749
boot_volume_size_in_gbs = var.BootVolSize
4850
}
4951

52+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
53+
5054
timeouts {
5155
create = var.create_timeout
5256
}
@@ -74,6 +78,8 @@ resource "oci_core_instance" "ESMasterNode2" {
7478
boot_volume_size_in_gbs = var.BootVolSize
7579
}
7680

81+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
82+
7783
timeouts {
7884
create = var.create_timeout
7985
}
@@ -101,6 +107,8 @@ resource "oci_core_instance" "ESMasterNode3" {
101107
boot_volume_size_in_gbs = var.BootVolSize
102108
}
103109

110+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
111+
104112
timeouts {
105113
create = var.create_timeout
106114
}
@@ -127,6 +135,8 @@ resource "oci_core_instance" "ESDataNode1" {
127135
boot_volume_size_in_gbs = var.BootVolSize
128136
}
129137

138+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
139+
130140
timeouts {
131141
create = var.create_timeout
132142
}
@@ -155,6 +165,8 @@ resource "oci_core_instance" "ESDataNode2" {
155165
boot_volume_size_in_gbs = var.BootVolSize
156166
}
157167

168+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
169+
158170
timeouts {
159171
create = var.create_timeout
160172
}
@@ -183,6 +195,8 @@ resource "oci_core_instance" "ESDataNode3" {
183195
boot_volume_size_in_gbs = var.BootVolSize
184196
}
185197

198+
defined_tags = {"${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
199+
186200
timeouts {
187201
create = var.create_timeout
188202
}

0 commit comments

Comments
 (0)