mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-30 23:55:23 +01:00
275067afcf
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
19 lines
335 B
Plaintext
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 %}
|