Skip to content

Commit 3e21831

Browse files
authored
added root_compartment_id variable (#8)
1 parent d94f77a commit 3e21831

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

CHANGELOG.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ All notable changes to this project are documented in this file.
77

88
The format is based on {uri-changelog}[Keep a Changelog].
99

10+
== v1.0.5 (August 5,2020)
11+
* tenancy id is needed for list of ADs (#7)
12+
1013
== v1.0.4 (August 5,2020)
11-
* Home provider configuration changes
14+
* Home provider configuration changes (#5)
1215

1316
== v1.0.3 (July 15,2020)
14-
* Made label_prefix optional
17+
* Made label_prefix optional (#3)
1518

1619
== v1.0.2 (June 10,2020)
1720

datasources.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
33

44
data "oci_identity_availability_domains" "ad_list" {
5-
compartment_id = var.tenancy_id
5+
compartment_id = var.root_compartment_id
66
}
77

88
data "template_file" "ad_names" {
@@ -11,7 +11,7 @@ data "template_file" "ad_names" {
1111
}
1212

1313
data "oci_identity_tenancy" "tenancy" {
14-
tenancy_id = var.tenancy_id
14+
tenancy_id = var.root_compartment_id
1515
}
1616

1717
# get the tenancy's home region

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ variable "label_prefix" {
4545
default = "none"
4646
}
4747

48+
variable "root_compartment_id" {
49+
# specify a different name so it can be used in resource manager
50+
description = "tenancy id where to create the sources"
51+
type = string
52+
}
53+
4854
# network parameters
4955

5056
variable "availability_domain" {

0 commit comments

Comments
 (0)