Skip to content

Commit 91d5139

Browse files
committed
updating data sources and install command for OSMS agent
1 parent 5ae14c6 commit 91d5139

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/osmanagement/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ resource "null_resource" "remote-exec" {
115115
inline = [
116116
"sudo -E wget http://yum-${var.region}.oracle.com/yum-${var.region}-ol7.repo",
117117
"sudo yum-config-manager --enable ol7_oci_included",
118-
"sudo yum --enablerepo ol7_oci_included install osms-agent",
118+
"sudo yum -y --enablerepo ol7_oci_included install osms-agent",
119119
]
120120
}
121121
}
@@ -257,9 +257,9 @@ data "oci_osmanagement_managed_instance" "test_managed_instance" {
257257
}
258258

259259
output "managed_instance_output" {
260-
value = ["${data.oci_osmanagement_managed_instance.test_managed_instance}"]
260+
value = ["${data.oci_osmanagement_managed_instance.test_managed_instance.managed_instance_groups}"]
261261
}
262262

263263
output "managed_instance_groups_output" {
264-
value = ["${data.oci_osmanagement_managed_instance_groups.test_managed_instance_groups}"]
264+
value = ["${data.oci_osmanagement_managed_instance_groups.test_managed_instance_groups.display_name}"]
265265
}

0 commit comments

Comments
 (0)