Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-1910

vcsrepo git provider support for different ssh port

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: vcsrepo
    • Environment:

      puppet 3.7.4
      facter 1.7.6
      vcsrepo 1.2.0
      git 1.8.3.1
      CentOS 7.0

    • Template:
    • Epic Link:
    • Team:
      Modules

      Description

      Current version of vcsrepo does not support the scenario where the ssh port of a repository is different than the default one when using an ssh key.

      For example for repositories with a URL like

      ssh://git@example.com:7999/example/example.git
      

      the git resource should be something like

      vcsrepo { "path_to_resource":
        ensure   => present,
        provider => git,
        source   => "git@example.com:example/example.git",
        identity => '/root/.ssh/deploykey_rsa',
        port     => '7999'
      }
      

      that will map to something like in the GIT_SSH file

      exec ssh ... -i /root/.ssh/deploykey_rsa -p 7999 $*
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            stzilli Stefano Zilli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support