https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • b

    Brian Schonecker

    06/29/2022, 1:54 PM
    Is it possible that you have [sic] StrictHostKeyChecking and your SSH keys have changed and the git process is failing due to a known_hosts key change?
  • b

    Brian Schonecker

    06/29/2022, 1:54 PM
    You could try wiping out the ~/.ssh/know_hosts file of your puppet enterprise "user" that pulls down git code.
  • v

    vchepkov

    06/29/2022, 1:55 PM
    Unless changed, CM is not using ssh, it's using rugged library
  • v

    vchepkov

    06/29/2022, 1:55 PM
    so your tests might be invalid
  • v

    vchepkov

    06/29/2022, 1:55 PM
    the link I sent has all the instructions
  • v

    vchepkov

    06/29/2022, 1:56 PM
    so your tests might be invalid
  • b

    Brian Schonecker

    06/29/2022, 1:57 PM
    @vchepkov Wouldn't CM use either https or SSH in the background for pulling the code from a git-based SCC? Again, I'm coming from Puppet Open Source here and would like to how PE differs.
  • v

    vchepkov

    06/29/2022, 2:00 PM
    error says can't establish ssh session, so I presume there is a ssh source counfigured
  • v

    vchepkov

    06/29/2022, 2:00 PM
    and as I said, it's using ruby rugged library by default
  • v

    vchepkov

    06/29/2022, 2:00 PM
    that can be changed
  • v

    vchepkov

    06/29/2022, 2:01 PM
    to native ssh
  • s

    Scott Fenton

    06/29/2022, 2:11 PM
    I was checking the docs, but I didn't see anything that applied here. There's nothing about that error message
  • v

    vchepkov

    06/29/2022, 2:26 PM
    you might have outdated libssh2, what is your OS ?
  • s

    Scott Fenton

    06/29/2022, 2:27 PM
    RHEL 7.9
  • s

    Scott Fenton

    06/29/2022, 2:27 PM
    Fully up-to-date as of yesterday
  • v

    vchepkov

    06/29/2022, 2:27 PM
    yeah, I think I recall that was the problem
  • v

    vchepkov

    06/29/2022, 2:27 PM
    7.9 hasn't been maintained for awhile
  • v

    vchepkov

    06/29/2022, 2:27 PM
    security fixes only
  • v

    vchepkov

    06/29/2022, 2:28 PM
    try to switch to shellgit, I bet it will fixes it for you
  • s

    Scott Fenton

    06/29/2022, 2:28 PM
    I can't use HTTPS due to regs though
  • s

    Scott Fenton

    06/29/2022, 2:28 PM
    There needs to be access control on the repo
  • v

    vchepkov

    06/29/2022, 2:29 PM
    that's fine, shellgit provider will use external git command, which will use openssh
  • l

    Lumiere

    06/29/2022, 2:29 PM
    you could also configure auth via apache/nginx for https
  • s

    Scott Fenton

    06/29/2022, 2:30 PM
    OK, I missed the line in the docs about turning shellgit on. Where do I look for that?
  • v

    vchepkov

    06/29/2022, 2:30 PM
    https://puppet.com/docs/pe/2021.6/r10k_customize_config.html#r10k_configuring_git_settings
  • v

    vchepkov

    06/29/2022, 2:32 PM
    also, google shows your error - https://github.com/puppetlabs/r10k/issues/804
  • v

    vchepkov

    06/29/2022, 2:32 PM
    also, google shows your error - https://github.com/puppetlabs/r10k/issues/804
  • s

    Scott Fenton

    06/29/2022, 2:32 PM
    I was thrown off b/c it was Bitbucket and not Github
  • s

    Scott Fenton

    06/29/2022, 2:32 PM
    Sorry abt that
  • v

    vchepkov

    06/29/2022, 2:32 PM
    np
1...848586...428Latest