-
Notifications
You must be signed in to change notification settings - Fork 8
/
datasources.tf
40 lines (33 loc) · 1.06 KB
/
datasources.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
## Copyright © 2019, Oracle and/or its affiliates.
## All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at https://oss.oracle.com/licenses/upl
# Get list of Availability Domains
data "oci_identity_availability_domains" "ADs" {
compartment_id = var.tenancy_ocid
}
# Get latest Oracle Linux image
data "oci_core_images" "InstanceImageOCID" {
compartment_id = var.compartment_ocid
operating_system = var.instance_os
operating_system_version = var.linux_os_version
filter {
name = "display_name"
values = ["^.*Oracle[^G]*$"]
regex = true
}
}
# Get swift object storage name for Service Gateway
data "oci_core_services" "svcgtw_services" {
filter {
name = "name"
values = [".*Object.*Storage"]
regex = true
}
}
## Get FSS Private IP
data "oci_core_private_ips" "ip_sap_fss_mount_target" {
subnet_id = oci_file_storage_mount_target.fss_sap_mount_target.subnet_id
filter {
name = "id"
values = [oci_file_storage_mount_target.fss_sap_mount_target.private_ip_ids[0]]
}
}