Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved support for Enterprise Linux family OSs (CentOS, RHEL etc) #139

Merged
merged 1 commit into from
Jun 4, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``
----------------
Expand All @@ -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``
-----------------------

Expand Down
5 changes: 2 additions & 3 deletions salt/gitfs/pygit2.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
13 changes: 12 additions & 1 deletion salt/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
8 changes: 5 additions & 3 deletions salt/pkgrepo/init.sls
Original file line number Diff line number Diff line change
@@ -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 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably could have just changed grains['os']|lower to grains['os_family']|lower

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, I didn't realize there was already stuff for not just Debian there.

Empty file.
10 changes: 10 additions & 0 deletions salt/pkgrepo/redhat/init.sls
Original file line number Diff line number Diff line change
@@ -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