Sfoglia il codice sorgente

Merge pull request #174 from spoage/fix-git-id-conflict

Fixed conflict with git-formula
master
puneet kandhari 9 anni fa
parent
commit
4983fc52e9
3 ha cambiato i file con 21 aggiunte e 3 eliminazioni
  1. +4
    -0
      salt/defaults.yaml
  2. +8
    -2
      salt/gitfs/pygit2.sls
  3. +9
    -1
      salt/map.jinja

+ 4
- 0
salt/defaults.yaml Vedi File

@@ -29,6 +29,10 @@ salt:
pygit2:
install_from_source: True
version: 0.23.0
git:
# if not false, should be state name
require_state: False
install_from_package: git
libgit2:
version: 0.23.0
install_from_source: True

+ 8
- 2
salt/gitfs/pygit2.sls Vedi File

@@ -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 %}

+ 9
- 1
salt/map.jinja Vedi File

@@ -15,6 +15,10 @@ that differ from whats in defaults.yaml
'pygit2': {
'install_from_source': True,
'version': '0.22.1',
'git': {
'require_state': False,
'install_from_package': 'git',
},
'libgit2': {
'install_from_source': False,
},
@@ -25,7 +29,11 @@ that differ from whats in defaults.yaml
'pygit2': 'python-pygit2',
'gitfs': {
'pygit2': {
'install_from_source': False,
'install_from_source': False,
'git': {
'require_state': False,
'install_from_package': 'git',
},
},
},
'master': {

Loading…
Annulla
Salva