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

feat(config): support options as data structure #47

Open tacerus opened 6 months ago

tacerus commented 6 months ago

PR progress checklist (to be filled in by reviewers)


What type of PR is this?

Primary type

Secondary type

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

Describe the changes you're proposing

Support the passing of arguments to an exported directory using a proper data structure.

Pillar / config required to test the proposed changes

nfs:
  server:
    exports:
      # new format 1
      /srv/cats:
        foo:
          - async
          - nohide
        bar: rw
      # new format 2
      /srv/dogs:
        foo: nohide
      # old format
      /srv/nfs: localhost(rw,nohide)

Debug log showing how the proposed changes work

Documentation checklist

Testing checklist

Additional context