| To provide consistency of special treatment for a plan parameter named $nodes, allow the run_plan() function to be invoked with $nodes as the second positional argument, so that it can be used the same way run_task() is. Consider the following code:
run_task('util::change_password', $nodes, |
username => 'Administrator', |
password => 'puppetlabs', |
) |
|
run_plan('reboot', $nodes, |
message => 'what a great day to reboot', |
)
|
Allowing this use case further advances and unifies the special convention(s) for a plan parameter called "nodes" begun in BOLT-336. |