Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add global parameters to tasks #628

Open
dmlemos opened this issue Jun 16, 2017 · 0 comments
Open

Add global parameters to tasks #628

dmlemos opened this issue Jun 16, 2017 · 0 comments

Comments

@dmlemos
Copy link

dmlemos commented Jun 16, 2017

Motivation

In my use case I'd like to setup shell flags across all tasks as to avoid specifying the flags in every task. It is a little bit worse when using switch conditionals.

Given the following tasks

task "download" {
  check = "..."
  apply  = <<EOF
    set -e
    ...
EOF
task "extract" {
  check = "..."
  apply  = <<EOF
    set -e
    ...
EOF
task "deploy" {
  check = "..."
  apply  = <<EOF
    set -e
    ...
}

Proposal

Taking the same implementation from terraform:

config {
  interpreter = "/bin/bash"
  flags = ["-e"]
  timeout = "30"
}

Particular useful for timeout.
Anything in config would apply globally to all tasks.

@dmlemos dmlemos changed the title Enforce shell flags Add global parameters to tasks Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant