Fixed conflict with git-formulatags/v0.57.0
pygit2: | pygit2: | ||||
install_from_source: True | install_from_source: True | ||||
version: 0.23.0 | version: 0.23.0 | ||||
git: | |||||
# if not false, should be state name | |||||
require_state: False | |||||
install_from_package: git | |||||
libgit2: | libgit2: | ||||
version: 0.23.0 | version: 0.23.0 | ||||
install_from_source: True | install_from_source: True |
{% from "salt/map.jinja" import salt_settings with context %} | {% from "salt/map.jinja" import salt_settings with context %} | ||||
{% set pygit2_settings = salt_settings.gitfs.pygit2 %} | {% set pygit2_settings = salt_settings.gitfs.pygit2 %} | ||||
git: | |||||
pkg.installed | |||||
{% if pygit2_settings.git.get('require_state', False) %} | |||||
include: | |||||
- {{ pygit2_settings.git.require_state }} | |||||
{% elif pygit2_settings.git.get('install_from_package', 'git') %} | |||||
pygit2-git: | |||||
pkg.installed: | |||||
- name: {{ pygit2_settings.git.install_from_package }} | |||||
{% endif %} | |||||
{% if pygit2_settings.install_from_source %} | {% if pygit2_settings.install_from_source %} | ||||
{% set libgit2_settings = pygit2_settings.libgit2 %} | {% set libgit2_settings = pygit2_settings.libgit2 %} |
'pygit2': { | 'pygit2': { | ||||
'install_from_source': True, | 'install_from_source': True, | ||||
'version': '0.22.1', | 'version': '0.22.1', | ||||
'git': { | |||||
'require_state': False, | |||||
'install_from_package': 'git', | |||||
}, | |||||
'libgit2': { | 'libgit2': { | ||||
'install_from_source': False, | 'install_from_source': False, | ||||
}, | }, | ||||
'pygit2': 'python-pygit2', | 'pygit2': 'python-pygit2', | ||||
'gitfs': { | 'gitfs': { | ||||
'pygit2': { | 'pygit2': { | ||||
'install_from_source': False, | |||||
'install_from_source': False, | |||||
'git': { | |||||
'require_state': False, | |||||
'install_from_package': 'git', | |||||
}, | |||||
}, | }, | ||||
}, | }, | ||||
'master': { | 'master': { |