blob: ab58d1e35e2bd9cea2d38fc1069fde5d68aa4140 [file] [log] [blame]
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
terraform {
required_providers {
enos = {
source = "app.terraform.io/hashicorp-qti/enos"
}
}
}
variable "node_public_ip" {
type = string
description = "Node Public IP address"
}
resource "enos_remote_exec" "shutdown_node" {
inline = ["sudo shutdown -H --no-wall; exit 0"]
transport = {
ssh = {
host = var.node_public_ip
}
}
}