Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Bolt
-
Bolt Kanban
-
New Feature
-
The input_method property of Tasks now defaults to undef rather than the string "both". This allows more flexibility in defaults and what input_methods we choose to support in the future.
-
Needs Assessment
Description
When a Task is run using BOLT puppet code is used to parse the task metadata. If `input_method` is not defined the default is set to `both`. https://github.com/puppetlabs/puppet/blob/a5385a74bdf7eb754dafed1f557563d97eb68bcd/lib/puppet/pops/pcore.rb#L74
In the case where Bolt is used to run a task the default `input_method` should be set based on the combination of programming language the task is implemented in and the transport. For example if a powershell task is run over winrm the default `input_method` should be `powershell`.
Proposed change: Puppet sets default value for `input_method` to `nil` when `input_method` is not defined. The responsibility for setting appropriate `input_method` for running tasks in Bolt will be handled in the various transport implementations.
Relates to BOLT-536
https://tickets.puppetlabs.com/browse/BOLT-536