pygit2 not working with gitfs using SSH
search cancel

pygit2 not working with gitfs using SSH

book

Article ID: 419929

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

The user remote GitFS configuration is setup like the following and the Salt master is not able to see files from the repository.

fileserver_backend:
  - gitfs
- roots

gitfs_provider: pygit2

gitfs_remotes:
- git@<REPOSERVER>:443/<ORG_NAME>/<REPO_NAME>.git:
- username: <YOUR_USER_NAME>
- password: <YOUR_PASSWORD>

When running salt-run fileserver.file_list backend=gitfs there are no files returned, or there is an error returned.

Or you run salt <MINION_ID> cp.list_states and do not see any of the expected files from your Git repository.

Environment

Salt - all versions

Cause

There may be multiple causes for this issue

Resolution

The repo URL schema is not a supported schema and will result in an error. If your organization does not allow port 22 for outbound connections, then consider changing to a HTTPS based repo URL.

See the SaltProject documentation for the GitFS walkthrough for more information.