saltstack-formulas / bind-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
29 stars 117 forks source link

Allow "allow-update" to have multiple elements #152

Open ekacnet opened 1 year ago

ekacnet commented 1 year ago

This allows to have multiple keys or a mix of keys and IP ...

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

Up to now allow-update, allow just one key but in some setup there is actually multiple keys. The change makes it possible to have either just one key as a string or a 1 element list or n element list. This means that current pillar are not impacted

Pillar / config required to test the proposed changes

  allow-update:
    - "key core_dhcp"                         # Who we allow updates, could be a string or an array
    - "key other_dhcp"

Debug log showing how the proposed changes work

Documentation checklist

Testing checklist

Additional context