Merge pull request #16 from noelmcloughlin/snapd_support

no native snapd package on Centos
This commit is contained in:
Javier Bértoli 2018-03-21 19:16:41 -03:00 committed by GitHub
commit e9b9e4c208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View file

@ -139,6 +139,10 @@ You can specify:
* ``required states`` on which any of the ``wanted`` packages depend for their
correct installation (ie, ``epel`` for RedHat families).
.. note::
Centos has no native ``snapd`` package at this time.
``packages.remote_pkgs``
------------------------

View file

@ -13,3 +13,8 @@ Fedora:
snaps:
collides: ['snap',]
symlink: True
Centos:
snaps:
package:

View file

@ -6,7 +6,8 @@
{% set wanted_snaps = packages.snaps.wanted %}
{% set unwanted_snaps = packages.snaps.unwanted %}
{% if packages.snaps.wanted or packages.snaps.unwanted %}
{%- if packages.snaps.package %}
{% if packages.snaps.wanted or packages.snaps.unwanted %}
### REQ PKGS (without this, SNAPS can fail to install/uninstall)
include:
@ -81,4 +82,5 @@ packages-snapd-{{ snap }}-unwanted:
- pkg: unwanted_pkgs
{% endfor %}
{% endif %}
{% endif %}