mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-10-08 14:12:41 +02:00
Fixed conflict with git-formula by allowing either inclusion of formula to install git dependency or specify a package name to install with a custom state ID.
This commit is contained in:
1 parent
c2d6e0e49b
commit
f0e691fa13
3 files changed
+21
-3
No files matched your search
@@ -1,8 +1,14 @@
|
||||
{% from "salt/map.jinja" import salt_settings with context %}
|
||||
{% 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 %}
|
||||
{% set libgit2_settings = pygit2_settings.libgit2 %}
|
||||
|
||||
Reference in new issue
Block a user