Uploaded image for project: 'Puppet Task Runner'
  1. Puppet Task Runner
  2. BOLT-29

Allow nodes to be specified in a file or on stdin

    Details

    • Release Notes:
      New Feature
    • Release Notes Summary:
      Hide
      Bolt now accepts node lists from stdin or from a file. To pass nodes on stdin:

      <command to generate node list> | bolt command run --nodes -

      To pass nodes in a file:

      bolt command run --nodes @nodes.txt
      Show
      Bolt now accepts node lists from stdin or from a file. To pass nodes on stdin: <command to generate node list> | bolt command run --nodes - To pass nodes in a file: bolt command run --nodes @nodes.txt
    • QA Risk Assessment:
      Manual

      Description

      In order to scale to larger numbers of hosts, bolt should accept a node list from stdin, something like:

      bolt --nodes -
      

      Where single dash means read from stdin.

      On *nix we can do things like:

      $ echo node-{1..4} | bolt command run <command> --nodes -
      $ puppet-query 'nodes[certname] {}' | jq -r '.[].certname' | bolt command run <command> --nodes -
      

      On Windows, we can do things like (I think?):

      PS C:\>  1..4 | %{"node-$_"} | bolt command run <command> --nodes -
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  josh Josh Cooper
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: