Uploaded image for project: 'R10K'
  1. R10K
  2. RK-143

r10k fails to clone github repositories when using openssh on windows server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: r10k 1.4.1
    • Fix Version/s: r10k 2.1.0
    • Component/s: None
    • Labels:
    • Environment:

      Server: Windows 2012R2 with OpenSSH Server
      Client: SSH client for OSX

    • Template:
    • Story Points:
      1
    • Sprint:
      CODEMGMT 2015-07-29

      Description

      Summary

      Trying to execute R10k from a Rundeck Workstation in OSX to a Windows 2012R2 Server running OpenSSH Server.

      In the following example the git command assumes that there are more arguments.

      ERROR    -> Command exited with non-zero exit code:
      Command: git clone --mirror https://github.com/puppetlabs/puppetlabs-stdlib.git C:/Program Files/OpenSSH/home/_puppet/.r10k/git/https---github.com-puppetlabs-puppetlabs-stdlib.git
      Stderr:
      Too many arguments.
      

      This is because by default when creating a connection to an open ssh server the default PATH would be C:/Program Files/OpenSSH/home/_puppet/.r10k<repo>

      After applying the following patch I was able to execute r10k using OpenSSH.

      https://github.com/lmayorga1980/r10k/commit/c98b5e3a2894b461b1a6c8f7bd68187356ef5e5c

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              lmayorga1980 Louis Mayorga
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support