Skip to content
This repository has been archived by the owner on Feb 24, 2025. It is now read-only.

Latest commit

 

History

History
49 lines (35 loc) · 1.15 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.15 KB

Terraform Module Script

pipeline release license

Script is a Terraform module useful for running Create and Destroy scripts on Remote Machines

Installation

Add the required configurations to your terraform config file and install module using command bellow:

terraform init

Usage

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
}

Contributing

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.

License

This project is licensed under the MIT.
Copyright (c) KoLiBer ([email protected])