mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-25 03:11:40 +01:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
30 lines
516 B
HCL
30 lines
516 B
HCL
# Copyright IBM Corp. 2016, 2025
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
terraform {
|
|
required_providers {
|
|
enos = {
|
|
source = "registry.terraform.io/hashicorp-forge/enos"
|
|
}
|
|
}
|
|
}
|
|
|
|
variable "host" {
|
|
type = object({
|
|
ipv6 = string
|
|
private_ip = string
|
|
public_ip = string
|
|
})
|
|
description = "The node to shut down"
|
|
}
|
|
|
|
resource "enos_remote_exec" "shutdown_node" {
|
|
inline = ["sudo shutdown -P --no-wall; exit 0"]
|
|
|
|
transport = {
|
|
ssh = {
|
|
host = var.host.public_ip
|
|
}
|
|
}
|
|
}
|