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

Ability to upload directories or recursively upload files in plans

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: BOLT 1.1.0
    • Component/s: None
    • Release Notes:
      New Feature
    • Release Notes Summary:
      The 'bolt file upload' command and 'upload_file' action will now upload directories as well. Use over the PCP transport requires puppetlabs-bolt_shim 0.2.0 or later.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Right now, there is no easy way to upload directories via a plan.

      A plan workflow I'm tinkering on is one that uploads puppet modules remotely, then runs a Puppet apply. There's no easy way to do the module upload part, except to tarball it up first, then expand as part of the plan, but the tar-ing has to be done manually outside of the task.

      Proposals

      1) Add an options hash to file_upload. This can then do something like `:recursive => true`
      2) Add a new function called directory_upload or recursive_upload, specifically for this use-case

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  peter.souter Peter Souter
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: