瀏覽代碼

Merge pull request #139 from willshersystems/centos

Improved support for Enterprise Linux family OSs (CentOS, RHEL etc)
master
puneet kandhari 9 年之前
父節點
當前提交
8d8371f19d
共有 6 個文件被更改,包括 32 次插入7 次删除
  1. +3
    -0
      README.rst
  2. +2
    -3
      salt/gitfs/pygit2.sls
  3. +12
    -1
      salt/map.jinja
  4. +5
    -3
      salt/pkgrepo/init.sls
  5. +0
    -0
      salt/pkgrepo/redhat/absent.sls
  6. +10
    -0
      salt/pkgrepo/redhat/init.sls

+ 3
- 0
README.rst 查看文件

@@ -67,6 +67,7 @@ Install gitfs backend GitPython dependenciess. Set ``salt:master:gitfs_provider:
----------------------

Install gitfs backend libgit2/pygit2 dependenciess. Set ``salt:master:gitfs_provider: pygit2`` in your pillar.
For EL distributions, pygit is installed from packages from `EPEL <https://github.com/saltstack-formulas/epel-formula>`_.

``salt.pkgrepo``
----------------
@@ -77,6 +78,8 @@ and Ubuntu, and aims to implement the `installation recommendations of the
official documentation
<http://docs.saltstack.com/en/latest/topics/installation/index.html#platform-specific-installation-instructions>`_.

On EL distributions, the official Salt `COPR for ZeroMQ 4 <http://copr.fedoraproject.org/coprs/saltstack/zeromq4/>`_. Salt itself is installed via `EPEL <https://github.com/saltstack-formulas/epel-formula>`_.

``salt.pkgrepo.absent``
-----------------------


+ 2
- 3
salt/gitfs/pygit2.sls 查看文件

@@ -53,8 +53,7 @@ install-pygit2:
- name: pygit2

{% else %}
# install from package
# TODO haven't actually found a distro that has a good version to test
# debian jessie will have libgit2-21
{{ salt_settings.pygit2 }}:
pkg.installed

{% endif %}

+ 12
- 1
salt/map.jinja 查看文件

@@ -14,7 +14,18 @@ that differ from whats in defaults.yaml
'CentOS': {},
'Amazon': {},
'Fedora': {},
'RedHat': {},
'RedHat': {
'pygit2': 'python-pygit2',
'gitfs': {
'pygit2': {
'install_from_source': False
},
},
'master': {
'gitfs_provider': 'pygit2'
},
'repotype': 'epel'
},
'Suse': {},
'Gentoo': {
'salt_master': 'app-admin/salt',

+ 5
- 3
salt/pkgrepo/init.sls 查看文件

@@ -1,4 +1,6 @@
{% if grains['os_family'] == 'Debian' %}
{% set name = {
'RedHat': 'redhat',
'Debian': grains['os']|lower,
}.get(grains.os_family) %}
include:
- .{{ grains['os']|lower }}
{% endif %}
- .{{ name }}

+ 0
- 0
salt/pkgrepo/redhat/absent.sls 查看文件


+ 10
- 0
salt/pkgrepo/redhat/init.sls 查看文件

@@ -0,0 +1,10 @@
{% from "salt/map.jinja" import salt_settings with context %}

saltstack-zeromq4:
pkgrepo.managed:
- humanname: Copr repo for zeromq4 owned by saltstack
- baseurl: http://copr-be.cloud.fedoraproject.org/results/saltstack/zeromq4/{{ salt_settings.repotype }}-$releasever-$basearch/
- gpgcheck: 1
- gpgkey: https://copr-be.cloud.fedoraproject.org/results/saltstack/zeromq4/pubkey.gpg
- skip_if_unavailable: True
- enabled: 1

Loading…
取消
儲存