0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-12-28 04:23:33 +01:00
salt-formula/salt/gitfs/gitpython.sls
Colin Stubbs 275067afcf
Fix for issue #361
Add quick sanity check at start of state, do not attempt to do anything unless salt.gitfs.gitpython exists to check for install_from_source within
2018-04-01 21:50:19 +10:00

19 lines
335 B
Plaintext

{% from "salt/map.jinja" import salt_settings with context %}
{% if 'gitfs' in salt_settings and 'gitpython' in salt_settings.gitfs %}
{% if salt_settings.gitfs.gitpython.install_from_source %}
GitPython:
pip.installed
{% else %}
python-git:
pkg.installed:
- name: {{ salt_settings.python_git }}
{% endif %}
{% endif %}