Jira (BOLT-305) Task metadata should allow defaults for parameter values

3 views
Skip to first unread message

Alex Dreyer (JIRA)

unread,
Jan 12, 2018, 1:05:04 PM1/12/18
to puppe...@googlegroups.com
Alex Dreyer updated an issue
 
Puppet Task Runner / Improvement BOLT-305
Task metadata should allow defaults for parameter values
Change By: Alex Dreyer
Summary: Task  Manifests  metadata  should  include a  allow  defaults  field  for parameter values
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Nick Lewis (JIRA)

unread,
Feb 26, 2019, 4:53:04 PM2/26/19
to puppe...@googlegroups.com
Nick Lewis updated an issue
Change By: Nick Lewis
Sprint: Bolt Ready for Grooming
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Corey Osman (JIRA)

unread,
Feb 26, 2019, 5:00:03 PM2/26/19
to puppe...@googlegroups.com
Corey Osman commented on Improvement BOLT-305
 
Re: Task metadata should allow defaults for parameter values

I also want this feature.  What I would like to see is something like defaultValue defined in the task metadata:

"parameters": {
    "channel": {
      "description": "The repo distribution channel",
      "type": "Enum[testing, unstable, stable]",
      "defaultValue": "stable"
    }
}

Currently I can accomplish the same thing using the script language.  But to have a language agnostic method might be useful.

channel=${PT_channel:-stable}  - Bash

channel= ENV['PT_channel'] || 'stable' - ruby

Of course this also means that when I run the show task command I should also see the configured defaults as well.

Chris Barker (JIRA)

unread,
Mar 29, 2019, 8:17:03 AM3/29/19
to puppe...@googlegroups.com
Chris Barker commented on Improvement BOLT-305

This would be a huge UX improvement for folks consuming tasks also.

`bolt task show $taskname`

Would be able to have flags to show command line and plan invocations of the task with easy copy/paste examples to reuse and tweak. Would make it very easy to build a plan by just copy/pasting output from the various tasks into the plan and changing the parameters as needed.

Alex Dreyer (JIRA)

unread,
Apr 17, 2019, 7:02:04 PM4/17/19
to puppe...@googlegroups.com

Austin Boyd (JIRA)

unread,
Dec 5, 2019, 6:15:05 AM12/5/19
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket IDs: 33290
Zendesk Ticket Count: 1
Reply all
Reply to author
Forward
0 new messages