safe-remote-exec

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2020 License: MPL-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

safe-remote-exec

safe-remote-exec provisoner introduces an environment to provide controlled execution of commands on the remote hosts. This is achieved by introducing a new parameter timeout in the schema. The configured timeout will be in the seconds. The remote command execution will be stopped/killed by sending SIGKILL to remote command if the command excution time exceeds the timout limit configured

Example

resource "null_resource" "safe-remote-exec-test" {
  connection {
    type        = "ssh"
    user        = var.user
    host        = var.ip
    password    = var.pw
  }

  provisioner "safe-remote-exec" {
    inline = ["ping localhost -c 10", "sleep 3", "ping localhost -c 15", "touch test.txt"]
    timeout = 45
  }
}

Build

make clean; make build

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
ssh

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL