Skip to content

Instantly share code, notes, and snippets.

@kayrus
Last active March 8, 2019 08:11
Show Gist options
  • Save kayrus/6a0721c0dd85930d6164ecc7689f4398 to your computer and use it in GitHub Desktop.
Save kayrus/6a0721c0dd85930d6164ecc7689f4398 to your computer and use it in GitHub Desktop.
arc-lyra automation in terraform
resource "ccloud_arc_agent_bootstrap_v1" "agent_1" {}
resource "ccloud_arc_agent_v1" "agent_1" {
filter = "@metadata_uuid='c83157fb-b79e-4854-a8be-76db4dbe1209'"
timeouts {
create = "5s"
}
}
data "ccloud_arc_agent_v1" "agent_1" {
# filter = "@hostname='automation-node'"
filter = "@metadata_uuid='c83157fb-b79e-4854-a8be-76db4dbe1209'"
timeout = 5
}
data "ccloud_arc_agent_ids_v1" "agent_1" {
filter = "@os='linux'"
}
output "bootstrap_user_data" {
value = "${ccloud_arc_agent_bootstrap_v1.agent_1.user_data}"
}
output "show_agent_facts" {
value = "${data.ccloud_arc_agent_v1.agent_1.facts}"
}
output "show_agent_facts1" {
value = "${data.ccloud_arc_agent_v1.agent_1.facts_agents}"
}
output "arc_linux_ids" {
value = "${data.ccloud_arc_agent_ids_v1.agent_1.ids}"
}
output "new_1" {
value = "${ccloud_arc_agent_v1.agent_1.facts}"
}
output "new_2" {
value = "${ccloud_arc_agent_v1.agent_1.facts_agents}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment