The gitfs Fileserver Backend
In SUSE Manager,
pygit2 is the supported Python interface to git. When
pygit2 is installed the
gitfs fileserver backend is available and it is a supported feature.
Configuration options are set in the
/etc/salt/master file, or in a separate configuration file in the
/etc/salt/master.d/ directory. The basic settings are:
List of fileserver backends that the Salt master checks for files in the order they are defined. Options:
roots: Files local on the Salt master (SUSE Manager Server).
rootsis required to keep the product running. You can only enable
gitfsoptionally. Additionally, SUSE strongly recommends to prefer
roots(local files) over
gitfs. The standard backend.
gitfs: Files stored in one or more git repositories. The repositories are defined with
fileserver_backend: - roots - git
List of git repositories.
ssh://URLs can be configured. For SSH remotes, a
scp-like syntax is also supported; for example:
email@example.com:universe/setup.git. Then you can also specify options for credentials, file locations, or branches such as
gitfs_remotes: - https://example.com/myformulas/formula.git - firstname.lastname@example.org:universe/setup.git: - pubkey: /var/lib/salt/.ssh/id_rsa_gitlab.pub - privkey: /var/lib/salt/.ssh/id_rsa_gitlab - root: srv/salt - base: master
List of external pillar interfaces. Salt can also serve pillar data from one or more git repositories. For syntax and options, also see the
ext_pillar: - git: - master email@example.com:universe/setup.git: - root: srv/pillar - pubkey: /var/lib/salt/.ssh/id_rsa_gitlab.pub - privkey: /var/lib/salt/.ssh/id_rsa_gitlab