safe-local-exec

command module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

README

safe-local-exec

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

Example

resource "null_resource" "safe-local-exec-test" {

  provisioner "safe-local-exec" {
    command = "ping localhost -c 100"
    timeout = 10
  }
}

Build

make clean; make build

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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