Script is a Terraform module useful for running Create and Destroy scripts on Remote Machines
Add the required configurations to your terraform config file and install module using command bellow:
terraform init
module "script" {
source = "cktf/script/module"
connection = {
type = "ssh"
host = "192.168.100.100"
port = 22
user = "root"
password = "pass"
}
create = <<-EOF
apt install -y docker.io
EOF
destroy = <<-EOF
apt remove -y docker.io
EOF
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
This project is licensed under the MIT.
Copyright (c) KoLiBer ([email protected])