mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-07 02:45:21 +00:00
16 lines
459 B
Plaintext
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 %}
|