salt-common/sls/nfs/pkg.sls
Andrey Abramov e4a5c47ab0 review fixes
2019-06-27 17:56:22 +03:00

16 lines
459 B
Plaintext

# TODO: refactor
{% set utils_version = salt['pillar.get']('nfs:utils:version', '>=2.3.1') %}
{% set utils_use = salt['pillar.get']('nfs:utils:use', ['caps','kerberos','nfsv4','nfsv41','-tcpd']) %}
{% if 'kerberos' in utils_use %}
include:
- kerberos.pkg
{% endif %}
net-fs/nfs-utils:
pkg.installed:
- version: "{{ utils_version }}[{{ ','.join(utils_use) }}]"
{% if 'kerberos' in utils_use %}
- pkg: app-crypt/mit-krb5
{% endif %}