generated from oracle-quickstart/oci-quickstart-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathlocals.tf
More file actions
28 lines (24 loc) · 923 Bytes
/
locals.tf
File metadata and controls
28 lines (24 loc) · 923 Bytes
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
# Copyright (c) 2023, 2026, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
locals {
all_tenancy_osmh_software_sources = data.oci_os_management_hub_software_sources.all_tenancy_osmh_software_sources.software_source_collection[0].items
software_source_names = [
"ol8_addons-x86_64",
"ol8_appstream-x86_64",
"ol8_baseos_latest-x86_64",
"ol8_ksplice-x86_64",
"ol8_mysql80_connectors_community-x86_64",
"ol8_mysql80_tools_community-x86_64",
"ol8_uekr7-x86_64",
"ol8_mysql80_community-x86_64"
]
software_source_id_by_name = {
for src in local.all_tenancy_osmh_software_sources :
src.display_name => src.id
}
filtered_sources = [
for name in local.software_source_names :
local.software_source_id_by_name[name]
if contains(keys(local.software_source_id_by_name), name)
]
}