saltstack-formulas / nfs-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Apache License 2.0
18 stars 83 forks source link

[BUG] SLS `nfs.server` fails to compile on FreeBSD #38

Closed sticky-note closed 3 years ago

sticky-note commented 3 years ago

There is not init grain on an out-of-box FreeBSD box

    Data failed to compile:
----------
    Rendering SLS 'dev:nfs.server' failed: Jinja variable 'dict object' has no attribute 'init'
/var/cache/salt/minion/files/dev/nfs/osfamilymap.yaml(37):
---
[...]
  service_name: 'nfsserver'

Gentoo:
  pkgs_server: ['net-fs/nfs-utils']
  pkgs_client: ['net-fs/nfs-utils']
  service_name: {{ 'nfs-server' if grains.init == 'systemd' else 'nfs' }}    <======================
myii commented 3 years ago

Also added CI for *BSD in #39.

saltstack-formulas-travis commented 3 years ago

:tada: This issue has been resolved in version 0.12.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

sticky-note commented 3 years ago

Thanks @myii